[原系统线上mysql 结构]dhdb.sql 209 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : local
  4. Source Server Type : MySQL
  5. Source Server Version : 50730
  6. Source Host : localhost:3306
  7. Source Schema : dhdb
  8. Target Server Type : MySQL
  9. Target Server Version : 50730
  10. File Encoding : 65001
  11. Date: 19/12/2020 14:21:01
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for codes
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `codes`;
  19. CREATE TABLE `codes` (
  20. `ID` int(11) NOT NULL,
  21. `now` int(11) NULL DEFAULT NULL,
  22. `date` int(11) NULL DEFAULT NULL COMMENT '日期',
  23. `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型',
  24. `len` int(11) NOT NULL COMMENT '长度',
  25. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  26. PRIMARY KEY (`ID`) USING BTREE
  27. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  28. -- ----------------------------
  29. -- Table structure for t_project_dabiao_info
  30. -- ----------------------------
  31. DROP TABLE IF EXISTS `t_project_dabiao_info`;
  32. CREATE TABLE `t_project_dabiao_info` (
  33. `id` int(11) NOT NULL,
  34. `projectid` int(11) NULL DEFAULT NULL,
  35. `typeid` int(11) NULL DEFAULT NULL,
  36. `yearvalue` int(11) NULL DEFAULT NULL,
  37. `monthvalue` int(11) NULL DEFAULT NULL,
  38. `warrantytype` int(11) NULL DEFAULT NULL,
  39. `thisdate` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  40. `lognum` int(11) NULL DEFAULT NULL,
  41. `ischeck` int(11) NULL DEFAULT NULL,
  42. `ispass` int(11) NULL DEFAULT NULL,
  43. `salecenterid` int(11) NULL DEFAULT NULL,
  44. PRIMARY KEY (`id`) USING BTREE
  45. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  46. -- ----------------------------
  47. -- Table structure for t_project_lognum
  48. -- ----------------------------
  49. DROP TABLE IF EXISTS `t_project_lognum`;
  50. CREATE TABLE `t_project_lognum` (
  51. `projectid` int(11) NULL DEFAULT NULL,
  52. `yearvalue` int(11) NULL DEFAULT NULL,
  53. `serviceamount` int(11) NULL DEFAULT NULL,
  54. `mon1_lognum` int(11) NULL DEFAULT NULL,
  55. `mon2_lognum` int(11) NULL DEFAULT NULL,
  56. `mon3_lognum` int(11) NULL DEFAULT NULL,
  57. `mon4_lognum` int(11) NULL DEFAULT NULL,
  58. `mon5_lognum` int(11) NULL DEFAULT NULL,
  59. `mon6_lognum` int(11) NULL DEFAULT NULL,
  60. `mon7_lognum` int(11) NULL DEFAULT NULL,
  61. `mon8_lognum` int(11) NULL DEFAULT NULL,
  62. `mon9_lognum` int(11) NULL DEFAULT NULL,
  63. `mon10_lognum` int(11) NULL DEFAULT NULL,
  64. `mon11_lognum` int(11) NULL DEFAULT NULL,
  65. `mon12_lognum` int(11) NULL DEFAULT NULL
  66. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  67. -- ----------------------------
  68. -- Table structure for t_servelogtype
  69. -- ----------------------------
  70. DROP TABLE IF EXISTS `t_servelogtype`;
  71. CREATE TABLE `t_servelogtype` (
  72. `ID` int(11) NOT NULL,
  73. `code` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  74. `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  75. `desc` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL
  76. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  77. -- ----------------------------
  78. -- Table structure for tacceptance
  79. -- ----------------------------
  80. DROP TABLE IF EXISTS `tacceptance`;
  81. CREATE TABLE `tacceptance` (
  82. `ID` int(11) NOT NULL,
  83. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称(外键,指向tproject.ID)',
  84. `startdate` datetime NULL DEFAULT NULL COMMENT '验收日期-起始',
  85. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间',
  86. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  87. `createtime` datetime NULL DEFAULT NULL,
  88. `isdel` int(11) NULL DEFAULT NULL,
  89. `enddate` datetime NULL DEFAULT NULL COMMENT '验收日期-结束',
  90. `address` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '验收地点',
  91. `custnameid` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户姓名',
  92. `functions` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '系统已经实现的功能',
  93. `runmatter` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '系统运行情况或使用效果',
  94. `advice` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '其它',
  95. `custpost` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户职位',
  96. `custphone` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户电话',
  97. `conclusion` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '验收结论',
  98. `doctypeid` int(11) NULL DEFAULT NULL COMMENT '报告类型',
  99. `type` int(11) NULL DEFAULT NULL COMMENT '报告分类',
  100. PRIMARY KEY (`ID`) USING BTREE
  101. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '调试验收报告' ROW_FORMAT = Dynamic;
  102. -- ----------------------------
  103. -- Table structure for tacceptance_attachment
  104. -- ----------------------------
  105. DROP TABLE IF EXISTS `tacceptance_attachment`;
  106. CREATE TABLE `tacceptance_attachment` (
  107. `ID` int(11) NOT NULL COMMENT '主键',
  108. `acceptanceid` int(11) NULL DEFAULT NULL COMMENT '验收报告单ID(外键,指向tacceptance.ID)',
  109. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  110. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  111. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  112. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  113. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  114. PRIMARY KEY (`ID`) USING BTREE
  115. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '调试验收报告-验收附件表' ROW_FORMAT = Dynamic;
  116. -- ----------------------------
  117. -- Table structure for tacceptance_debug_attach
  118. -- ----------------------------
  119. DROP TABLE IF EXISTS `tacceptance_debug_attach`;
  120. CREATE TABLE `tacceptance_debug_attach` (
  121. `ID` int(11) NOT NULL COMMENT '主键',
  122. `acceptanceid` int(11) NULL DEFAULT NULL COMMENT '验收报告单ID(外键,指向tacceptance.ID)',
  123. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  124. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  125. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  126. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  127. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  128. PRIMARY KEY (`ID`) USING BTREE
  129. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '验收报告--调试附件' ROW_FORMAT = Dynamic;
  130. -- ----------------------------
  131. -- Table structure for tacceptancetype
  132. -- ----------------------------
  133. DROP TABLE IF EXISTS `tacceptancetype`;
  134. CREATE TABLE `tacceptancetype` (
  135. `ID` int(11) NOT NULL,
  136. `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型名称',
  137. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  138. `createtime` datetime NULL DEFAULT NULL,
  139. PRIMARY KEY (`ID`) USING BTREE
  140. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  141. -- ----------------------------
  142. -- Table structure for taimpass
  143. -- ----------------------------
  144. DROP TABLE IF EXISTS `taimpass`;
  145. CREATE TABLE `taimpass` (
  146. `ID` int(11) NOT NULL,
  147. `aimpass` decimal(10, 2) NULL DEFAULT NULL COMMENT '目标合格率',
  148. PRIMARY KEY (`ID`) USING BTREE
  149. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '目标合格率' ROW_FORMAT = Dynamic;
  150. -- ----------------------------
  151. -- Table structure for tallot
  152. -- ----------------------------
  153. DROP TABLE IF EXISTS `tallot`;
  154. CREATE TABLE `tallot` (
  155. `ID` int(11) NOT NULL COMMENT '主键',
  156. `salecenter` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区域/销售服务中心',
  157. `employeename` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人',
  158. `allotcode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请单号',
  159. `allotdate` datetime NULL DEFAULT NULL COMMENT '申请日期',
  160. `allottype` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '采购类型',
  161. `urgentlevel` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '紧急程度',
  162. `reservecode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留号码',
  163. `finishdate` datetime NULL DEFAULT NULL COMMENT '办结日期',
  164. `totalmoney` decimal(12, 2) NULL DEFAULT NULL COMMENT '涉及总额',
  165. `remark` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注说明',
  166. `createtime` datetime NULL DEFAULT NULL COMMENT '导入时间',
  167. `empjobnumber` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人工号',
  168. PRIMARY KEY (`ID`) USING BTREE
  169. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '物料调拨单主表' ROW_FORMAT = Dynamic;
  170. -- ----------------------------
  171. -- Table structure for tallot_product
  172. -- ----------------------------
  173. DROP TABLE IF EXISTS `tallot_product`;
  174. CREATE TABLE `tallot_product` (
  175. `ID` int(11) NOT NULL COMMENT '主键',
  176. `allotcode` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料调拨单ID,外键指向tallot.id',
  177. `productcode` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  178. `productname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料名称',
  179. `productnum` int(11) NULL DEFAULT NULL COMMENT '物料数量',
  180. `productunit` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料单位',
  181. `stockloc` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '库存地点',
  182. `stockcode` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '库存编号',
  183. `createtime` datetime NULL DEFAULT NULL COMMENT '导入时间',
  184. `projectid` int(11) NULL DEFAULT NULL COMMENT '关联项目,外键指向tproject.id',
  185. `remark` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联备注',
  186. PRIMARY KEY (`ID`) USING BTREE
  187. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '物料调拨单-产品表' ROW_FORMAT = Dynamic;
  188. -- ----------------------------
  189. -- Table structure for tcar
  190. -- ----------------------------
  191. DROP TABLE IF EXISTS `tcar`;
  192. CREATE TABLE `tcar` (
  193. `ID` int(11) NOT NULL,
  194. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '所在销售服务中心(外键,指向tsalecenter.ID)',
  195. `area` int(11) NULL DEFAULT NULL COMMENT '服务地区-客户ID(外键,指向tcustomer.ID)',
  196. `plateno` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '车牌号',
  197. `model` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '车型',
  198. `buydate` datetime NULL DEFAULT NULL COMMENT '购置日期',
  199. `mileage` decimal(12, 2) NULL DEFAULT NULL COMMENT '行驶里程',
  200. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  201. `createtime` datetime NULL DEFAULT NULL,
  202. `isdel` int(11) NULL DEFAULT NULL,
  203. `isdisable` int(11) NULL DEFAULT NULL COMMENT '(isdel)',
  204. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间',
  205. `totalmileage` decimal(12, 2) NULL DEFAULT NULL COMMENT '总行驶',
  206. PRIMARY KEY (`ID`) USING BTREE
  207. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '车辆管理' ROW_FORMAT = Dynamic;
  208. -- ----------------------------
  209. -- Table structure for tcar_detail
  210. -- ----------------------------
  211. DROP TABLE IF EXISTS `tcar_detail`;
  212. CREATE TABLE `tcar_detail` (
  213. `ID` int(11) NOT NULL,
  214. `carid` int(11) NULL DEFAULT NULL COMMENT '车辆档案ID(外键,指向tcar.ID)',
  215. `date` datetime NULL DEFAULT NULL COMMENT '记录日期',
  216. `kilometre` decimal(12, 2) NULL DEFAULT NULL COMMENT '公里数',
  217. `mileage` decimal(12, 2) NULL DEFAULT NULL COMMENT '行驶里程',
  218. `remark` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  219. `isdel` int(11) NULL DEFAULT NULL,
  220. `createmanid` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  221. `createtime` datetime NULL DEFAULT NULL,
  222. `mbkm` decimal(12, 2) NULL DEFAULT NULL COMMENT '保养里程',
  223. PRIMARY KEY (`ID`) USING BTREE
  224. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '车辆管理每周公里数记录' ROW_FORMAT = Dynamic;
  225. -- ----------------------------
  226. -- Table structure for tcartype
  227. -- ----------------------------
  228. DROP TABLE IF EXISTS `tcartype`;
  229. CREATE TABLE `tcartype` (
  230. `ID` int(11) NOT NULL,
  231. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '车型',
  232. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识'
  233. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '车辆类型' ROW_FORMAT = Dynamic;
  234. -- ----------------------------
  235. -- Table structure for tcompetitor
  236. -- ----------------------------
  237. DROP TABLE IF EXISTS `tcompetitor`;
  238. CREATE TABLE `tcompetitor` (
  239. `ID` int(11) NOT NULL,
  240. `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '竞争对手名称',
  241. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  242. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  243. `createtime` datetime NULL DEFAULT NULL,
  244. PRIMARY KEY (`ID`) USING BTREE
  245. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '竞争对手表' ROW_FORMAT = Dynamic;
  246. -- ----------------------------
  247. -- Table structure for tcontact
  248. -- ----------------------------
  249. DROP TABLE IF EXISTS `tcontact`;
  250. CREATE TABLE `tcontact` (
  251. `ID` int(11) NOT NULL,
  252. `copyerid` int(11) NULL DEFAULT NULL COMMENT '员工ID(指向temployee)',
  253. `isdel` int(11) NULL DEFAULT NULL,
  254. `usuallycopyer` int(11) NULL DEFAULT NULL COMMENT '是否为常用登录人',
  255. `uid` int(11) NULL DEFAULT NULL COMMENT '当前登录人',
  256. PRIMARY KEY (`ID`) USING BTREE
  257. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  258. -- ----------------------------
  259. -- Table structure for tcustlinkman
  260. -- ----------------------------
  261. DROP TABLE IF EXISTS `tcustlinkman`;
  262. CREATE TABLE `tcustlinkman` (
  263. `ID` int(11) NOT NULL,
  264. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识 (0:未删除,1:已删除)',
  265. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  266. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  267. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识',
  268. `customerid` int(11) NULL DEFAULT NULL COMMENT '客户ID(外键,指向tcustomer.ID)',
  269. `dept` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所在部门',
  270. `remark` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  271. `post` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '职务',
  272. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '姓名',
  273. `phone` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
  274. `email` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系邮箱',
  275. `sex` int(11) NULL DEFAULT NULL COMMENT '性别',
  276. PRIMARY KEY (`ID`) USING BTREE
  277. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '客户联系人' ROW_FORMAT = Dynamic;
  278. -- ----------------------------
  279. -- Table structure for tcustomer
  280. -- ----------------------------
  281. DROP TABLE IF EXISTS `tcustomer`;
  282. CREATE TABLE `tcustomer` (
  283. `ID` int(11) NOT NULL,
  284. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识 (0:未删除,1:已删除)',
  285. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  286. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  287. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间',
  288. `PID` int(11) NULL DEFAULT NULL COMMENT '父级客户ID(树形,指向tcustomer.ID)',
  289. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位名称',
  290. `remark` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  291. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识(isdel)',
  292. PRIMARY KEY (`ID`) USING BTREE
  293. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  294. -- ----------------------------
  295. -- Table structure for tcustomer_copy20180327
  296. -- ----------------------------
  297. DROP TABLE IF EXISTS `tcustomer_copy20180327`;
  298. CREATE TABLE `tcustomer_copy20180327` (
  299. `ID` int(11) NOT NULL,
  300. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识 (0:未删除,1:已删除)',
  301. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  302. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  303. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间',
  304. `PID` int(11) NULL DEFAULT NULL COMMENT '父级客户ID(树形,指向tcustomer.ID)',
  305. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位名称',
  306. `remark` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  307. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识(isdel)',
  308. PRIMARY KEY (`ID`) USING BTREE
  309. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  310. -- ----------------------------
  311. -- Table structure for tcusttrain
  312. -- ----------------------------
  313. DROP TABLE IF EXISTS `tcusttrain`;
  314. CREATE TABLE `tcusttrain` (
  315. `ID` int(11) NOT NULL,
  316. `startdate` datetime NULL DEFAULT NULL COMMENT '培训起始时间',
  317. `enddate` datetime NULL DEFAULT NULL COMMENT '培训终止时间',
  318. `address` int(11) NULL DEFAULT NULL COMMENT '培训地点(1:在京,2:现场)',
  319. `teacherid` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '培训讲师 (外键,多选,指向temployee.ID)',
  320. `custnum` int(11) NULL DEFAULT NULL COMMENT '参加人数',
  321. `abstract` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '内容摘要',
  322. `summary` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '培训总结',
  323. `advice` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '客户主要建议',
  324. `score` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '客户综合评分',
  325. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间',
  326. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  327. `createtime` datetime NULL DEFAULT NULL,
  328. `isdel` int(11) NULL DEFAULT NULL,
  329. `creater` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '填报人',
  330. `teachername` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '培训讲师 (外键,多选,指向temployee.ID)',
  331. `cc` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '邮件抄送人',
  332. `isnew` smallint(6) NULL DEFAULT NULL COMMENT '是否已查看(0:未查看,1:已查看)',
  333. `isfile` smallint(6) NULL DEFAULT NULL COMMENT '表单状态(0:未提交,1:已提交,2:已归档,3:已驳回)',
  334. PRIMARY KEY (`ID`) USING BTREE
  335. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目培训记录表' ROW_FORMAT = Dynamic;
  336. -- ----------------------------
  337. -- Table structure for tcusttrain_attach
  338. -- ----------------------------
  339. DROP TABLE IF EXISTS `tcusttrain_attach`;
  340. CREATE TABLE `tcusttrain_attach` (
  341. `ID` int(11) NOT NULL,
  342. `custtrainid` int(11) NULL DEFAULT NULL COMMENT '项目培训记录ID(外键,指向tcusttrain.ID)',
  343. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  344. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  345. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  346. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  347. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  348. PRIMARY KEY (`ID`) USING BTREE
  349. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目培训记录签到表' ROW_FORMAT = Dynamic;
  350. -- ----------------------------
  351. -- Table structure for tcusttrain_attachment
  352. -- ----------------------------
  353. DROP TABLE IF EXISTS `tcusttrain_attachment`;
  354. CREATE TABLE `tcusttrain_attachment` (
  355. `ID` int(11) NOT NULL,
  356. `custtrainid` int(11) NULL DEFAULT NULL COMMENT '项目培训记录ID(外键,指向tcusttrain.ID)',
  357. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  358. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  359. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  360. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  361. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  362. PRIMARY KEY (`ID`) USING BTREE
  363. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目培训记录附件表' ROW_FORMAT = Dynamic;
  364. -- ----------------------------
  365. -- Table structure for tcusttrain_detail
  366. -- ----------------------------
  367. DROP TABLE IF EXISTS `tcusttrain_detail`;
  368. CREATE TABLE `tcusttrain_detail` (
  369. `ID` int(11) NOT NULL COMMENT '主键',
  370. `custtrainid` int(11) NULL DEFAULT NULL COMMENT '项目培训记录ID(外键,指向tcusttrain.ID)',
  371. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称 (外键,指向tproject.ID)',
  372. `remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  373. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识(0:未删除,1:已删除)',
  374. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  375. PRIMARY KEY (`ID`) USING BTREE
  376. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目培训记录项目信息表' ROW_FORMAT = Dynamic;
  377. -- ----------------------------
  378. -- Table structure for tcusttype
  379. -- ----------------------------
  380. DROP TABLE IF EXISTS `tcusttype`;
  381. CREATE TABLE `tcusttype` (
  382. `ID` int(11) NOT NULL,
  383. `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户满意度调查对象分类名称',
  384. `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  385. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  386. `createtime` datetime NULL DEFAULT NULL,
  387. `code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编码',
  388. PRIMARY KEY (`ID`) USING BTREE
  389. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户满意度调查对象分类表' ROW_FORMAT = Dynamic;
  390. -- ----------------------------
  391. -- Table structure for tdocout
  392. -- ----------------------------
  393. DROP TABLE IF EXISTS `tdocout`;
  394. CREATE TABLE `tdocout` (
  395. `ID` int(11) NOT NULL,
  396. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称(外键,指向tproject.ID)',
  397. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  398. `createtime` datetime NULL DEFAULT NULL,
  399. `isdel` int(11) NULL DEFAULT NULL,
  400. PRIMARY KEY (`ID`) USING BTREE
  401. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户文件发放记录表' ROW_FORMAT = Dynamic;
  402. -- ----------------------------
  403. -- Table structure for tdocout_attach
  404. -- ----------------------------
  405. DROP TABLE IF EXISTS `tdocout_attach`;
  406. CREATE TABLE `tdocout_attach` (
  407. `ID` int(11) NOT NULL COMMENT '主键',
  408. `docoutid` int(11) NULL DEFAULT NULL COMMENT '用户文件发放记录外键',
  409. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  410. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  411. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  412. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  413. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  414. PRIMARY KEY (`ID`) USING BTREE
  415. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户文件发放记录附件表' ROW_FORMAT = Dynamic;
  416. -- ----------------------------
  417. -- Table structure for templet_file
  418. -- ----------------------------
  419. DROP TABLE IF EXISTS `templet_file`;
  420. CREATE TABLE `templet_file` (
  421. `ID` int(11) NOT NULL,
  422. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  423. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  424. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  425. `pageid` int(11) NULL DEFAULT NULL COMMENT '模板页面(外键,指向tsysmodule.ID)',
  426. PRIMARY KEY (`ID`) USING BTREE
  427. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  428. -- ----------------------------
  429. -- Table structure for temployee
  430. -- ----------------------------
  431. DROP TABLE IF EXISTS `temployee`;
  432. CREATE TABLE `temployee` (
  433. `ID` int(11) NOT NULL,
  434. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '姓名',
  435. `user_login` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '登录账号',
  436. `password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  437. `isdisable` int(11) NULL DEFAULT NULL COMMENT '在职标识(0:在职,1:离职)',
  438. `isdel` int(11) NULL DEFAULT NULL,
  439. `techlevel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '技术等级',
  440. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '所在销售服务中心(外键,指向tsalecenter.ID)',
  441. `sex` int(11) NULL DEFAULT NULL COMMENT '性别(0:女,1:男)',
  442. `birthdate` datetime NULL DEFAULT NULL COMMENT '出生日期',
  443. `birthaddress` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '出生地',
  444. `datetype` int(11) NULL DEFAULT NULL COMMENT '农历/公历(0:农历,1:公历)',
  445. `email` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系邮箱',
  446. `phone` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
  447. `education` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '学历',
  448. `ismarry` int(11) NULL DEFAULT NULL COMMENT '婚姻状况( 1:已婚,2:未婚)',
  449. `politics` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '政治面貌',
  450. `createtime` datetime NULL DEFAULT NULL,
  451. `jobnumber` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工号',
  452. `duty` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '职务',
  453. `totalscore` double NULL DEFAULT NULL COMMENT '分数',
  454. `oaid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'OA员工ID',
  455. `importdate` datetime NULL DEFAULT NULL COMMENT '导入日期',
  456. `idcard` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '身份证号',
  457. PRIMARY KEY (`ID`) USING BTREE
  458. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  459. -- ----------------------------
  460. -- Table structure for temployee_copy
  461. -- ----------------------------
  462. DROP TABLE IF EXISTS `temployee_copy`;
  463. CREATE TABLE `temployee_copy` (
  464. `ID` int(11) NOT NULL,
  465. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '姓名',
  466. `user_login` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '登录账号',
  467. `password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  468. `isdisable` int(11) NULL DEFAULT NULL COMMENT '在职标识(0:在职,1:离职)',
  469. `isdel` int(11) NULL DEFAULT NULL,
  470. `techlevel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '技术等级',
  471. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '所在销售服务中心(外键,指向tsalecenter.ID)',
  472. `sex` int(11) NULL DEFAULT NULL COMMENT '性别(0:女,1:男)',
  473. `birthdate` datetime NULL DEFAULT NULL COMMENT '出生日期',
  474. `birthaddress` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '出生地',
  475. `datetype` int(11) NULL DEFAULT NULL COMMENT '农历/公历(0:农历,1:公历)',
  476. `email` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系邮箱',
  477. `phone` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
  478. `education` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '学历',
  479. `ismarry` int(11) NULL DEFAULT NULL COMMENT '婚姻状况( 1:已婚,2:未婚)',
  480. `politics` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '政治面貌',
  481. `createtime` datetime NULL DEFAULT NULL,
  482. `jobnumber` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工号',
  483. `duty` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '职务',
  484. `totalscore` double NULL DEFAULT NULL COMMENT '分数',
  485. `oaid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'OA员工ID',
  486. `importdate` datetime NULL DEFAULT NULL COMMENT '导入日期',
  487. `idcard` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '身份证号',
  488. PRIMARY KEY (`ID`) USING BTREE
  489. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  490. -- ----------------------------
  491. -- Table structure for temployee_copy1
  492. -- ----------------------------
  493. DROP TABLE IF EXISTS `temployee_copy1`;
  494. CREATE TABLE `temployee_copy1` (
  495. `ID` int(11) NOT NULL,
  496. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '姓名',
  497. `user_login` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '登录账号',
  498. `password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  499. `isdisable` int(11) NULL DEFAULT NULL COMMENT '在职标识(0:在职,1:离职)',
  500. `isdel` int(11) NULL DEFAULT NULL,
  501. `techlevel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '技术等级',
  502. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '所在销售服务中心(外键,指向tsalecenter.ID)',
  503. `sex` int(11) NULL DEFAULT NULL COMMENT '性别(0:女,1:男)',
  504. `birthdate` datetime NULL DEFAULT NULL COMMENT '出生日期',
  505. `birthaddress` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '出生地',
  506. `datetype` int(11) NULL DEFAULT NULL COMMENT '农历/公历(0:农历,1:公历)',
  507. `email` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系邮箱',
  508. `phone` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
  509. `education` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '学历',
  510. `ismarry` int(11) NULL DEFAULT NULL COMMENT '婚姻状况( 1:已婚,2:未婚)',
  511. `politics` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '政治面貌',
  512. `createtime` datetime NULL DEFAULT NULL,
  513. `jobnumber` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工号',
  514. `duty` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '职务',
  515. `totalscore` double NULL DEFAULT NULL COMMENT '分数',
  516. `oaid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'OA员工ID',
  517. `importdate` datetime NULL DEFAULT NULL COMMENT '导入日期',
  518. `idcard` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '身份证号',
  519. PRIMARY KEY (`ID`) USING BTREE
  520. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  521. -- ----------------------------
  522. -- Table structure for temployee_detail
  523. -- ----------------------------
  524. DROP TABLE IF EXISTS `temployee_detail`;
  525. CREATE TABLE `temployee_detail` (
  526. `ID` int(11) NOT NULL COMMENT '主键',
  527. `employeeid` int(11) NULL DEFAULT NULL COMMENT '员工档案ID(外键,指向temployee.ID)',
  528. `startdate` datetime NULL DEFAULT NULL COMMENT '起始日期',
  529. `enddate` datetime NULL DEFAULT NULL COMMENT '截止日期',
  530. `orgid` int(11) NULL DEFAULT NULL COMMENT '所在销售服务中心(外键,指向torganization.ID)',
  531. `score` double NULL DEFAULT NULL COMMENT '销售服务中心经理评分',
  532. `remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  533. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识(0:未删除,1:已删除)',
  534. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  535. `areaid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '服务区域外键,指向torganization.ID',
  536. `positionid` int(11) NULL DEFAULT NULL COMMENT '岗位外键,指向torganizationposition.ID',
  537. `areaname` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '服务区域名称',
  538. `employeepositionid` int(11) NULL DEFAULT NULL COMMENT '员工部门明细表id,指向temployeeposition.id',
  539. PRIMARY KEY (`ID`) USING BTREE
  540. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  541. -- ----------------------------
  542. -- Table structure for temployeeposition
  543. -- ----------------------------
  544. DROP TABLE IF EXISTS `temployeeposition`;
  545. CREATE TABLE `temployeeposition` (
  546. `ID` int(11) NOT NULL COMMENT '主键',
  547. `employee` int(11) NULL DEFAULT NULL COMMENT '员工ID',
  548. `organization` int(11) NULL DEFAULT NULL COMMENT '组织ID',
  549. `position` int(11) NULL DEFAULT NULL COMMENT '岗位ID',
  550. `isposition` int(11) NULL DEFAULT NULL COMMENT '主岗位标识',
  551. `ismanager` int(11) NULL DEFAULT NULL COMMENT '负责人标识',
  552. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识',
  553. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  554. `worktypeid` int(11) NULL DEFAULT NULL COMMENT '兼职/全职',
  555. `areaid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责区域ID',
  556. `areaname` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责区域名称',
  557. `oaemployee` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'OA员工ID',
  558. `oaorganization` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'OA部门ID',
  559. `oaposition` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'OA岗位ID',
  560. `oaareaid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'OA区域ID(若OA无,则不需要导入该字段)',
  561. `importdate` datetime NULL DEFAULT NULL COMMENT '导入日期',
  562. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  563. PRIMARY KEY (`ID`) USING BTREE
  564. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '员工岗位角色' ROW_FORMAT = Dynamic;
  565. -- ----------------------------
  566. -- Table structure for temployeeposition_copy
  567. -- ----------------------------
  568. DROP TABLE IF EXISTS `temployeeposition_copy`;
  569. CREATE TABLE `temployeeposition_copy` (
  570. `ID` int(11) NOT NULL COMMENT '主键',
  571. `employee` int(11) NULL DEFAULT NULL COMMENT '员工ID',
  572. `organization` int(11) NULL DEFAULT NULL COMMENT '组织ID',
  573. `position` int(11) NULL DEFAULT NULL COMMENT '岗位ID',
  574. `isposition` int(11) NULL DEFAULT NULL COMMENT '主岗位标识',
  575. `ismanager` int(11) NULL DEFAULT NULL COMMENT '负责人标识',
  576. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识',
  577. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  578. `worktypeid` int(11) NULL DEFAULT NULL COMMENT '兼职/全职',
  579. `areaid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责区域ID',
  580. `areaname` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责区域名称',
  581. `oaemployee` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'OA员工ID',
  582. `oaorganization` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'OA部门ID',
  583. `oaposition` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'OA岗位ID',
  584. `oaareaid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'OA区域ID(若OA无,则不需要导入该字段)',
  585. `importdate` datetime NULL DEFAULT NULL COMMENT '导入日期',
  586. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  587. PRIMARY KEY (`ID`) USING BTREE
  588. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '员工岗位角色' ROW_FORMAT = Dynamic;
  589. -- ----------------------------
  590. -- Table structure for tempposition
  591. -- ----------------------------
  592. DROP TABLE IF EXISTS `tempposition`;
  593. CREATE TABLE `tempposition` (
  594. `ID` int(11) NOT NULL COMMENT '主键',
  595. `employeename` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '姓名',
  596. `jobnumber` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工号',
  597. `downtime` datetime NULL DEFAULT NULL COMMENT '下井时间',
  598. `uptime` datetime NULL DEFAULT NULL COMMENT '上井时间',
  599. `coal` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '下井煤矿',
  600. `work` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '工作内容',
  601. `createtime` datetime NOT NULL COMMENT '导入时间',
  602. `isdel` int(11) NULL DEFAULT NULL,
  603. `address` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  604. PRIMARY KEY (`ID`) USING BTREE
  605. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '井下人员定位表' ROW_FORMAT = Dynamic;
  606. -- ----------------------------
  607. -- Table structure for tequipok
  608. -- ----------------------------
  609. DROP TABLE IF EXISTS `tequipok`;
  610. CREATE TABLE `tequipok` (
  611. `ID` int(11) NOT NULL,
  612. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称(外键,指向tproject.ID)',
  613. `okrate` decimal(10, 2) NULL DEFAULT NULL COMMENT '目标合格率',
  614. `date` datetime NULL DEFAULT NULL COMMENT '统计时间',
  615. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间(isdel)',
  616. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  617. `createtime` datetime NULL DEFAULT NULL,
  618. `isdel` int(11) NULL DEFAULT NULL,
  619. `doctypeid` int(11) NULL DEFAULT NULL COMMENT '提交报告类型 ,指向 twarndays.ID',
  620. `runstateid` int(11) NULL DEFAULT NULL COMMENT '项目运行状态(外键,指向trunstate.ID)',
  621. PRIMARY KEY (`ID`) USING BTREE
  622. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '井下设备完好率表' ROW_FORMAT = Dynamic;
  623. -- ----------------------------
  624. -- Table structure for tequipok_detail
  625. -- ----------------------------
  626. DROP TABLE IF EXISTS `tequipok_detail`;
  627. CREATE TABLE `tequipok_detail` (
  628. `ID` int(11) NOT NULL,
  629. `equipokid` int(11) NULL DEFAULT NULL COMMENT '井下设备完好率统计表ID外键(指向tequipok)',
  630. `partid` int(11) NULL DEFAULT NULL COMMENT '元件名称(指向tproduct)',
  631. `num` decimal(12, 2) NULL DEFAULT NULL COMMENT '安装数量',
  632. `oknum` decimal(12, 2) NULL DEFAULT NULL COMMENT '完好数量',
  633. `okrate` decimal(12, 2) NULL DEFAULT NULL COMMENT '完好率',
  634. `remark` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注',
  635. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  636. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  637. `supplylistid` int(11) NULL DEFAULT NULL COMMENT '物料清单id,外键指向tsupplylistnew.id(或tsupplylist.id相同)',
  638. `productcode` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  639. PRIMARY KEY (`ID`) USING BTREE
  640. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '井下设备完好率统计表 井下设备主体内容表' ROW_FORMAT = Dynamic;
  641. -- ----------------------------
  642. -- Table structure for terppro_wbs
  643. -- ----------------------------
  644. DROP TABLE IF EXISTS `terppro_wbs`;
  645. CREATE TABLE `terppro_wbs` (
  646. `ID` int(11) NOT NULL,
  647. `erpprojectid` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'erp项目id,外键,指向terpproject.erpid',
  648. `wbsid` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbsid',
  649. `wbscode` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbs编号',
  650. `wbsname` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbs项目名称',
  651. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  652. `isreport` int(11) NULL DEFAULT NULL,
  653. `isdel` int(11) NULL DEFAULT NULL,
  654. PRIMARY KEY (`ID`) USING BTREE
  655. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'WBS项目表' ROW_FORMAT = Dynamic;
  656. -- ----------------------------
  657. -- Table structure for terppro_wbs_20180323
  658. -- ----------------------------
  659. DROP TABLE IF EXISTS `terppro_wbs_20180323`;
  660. CREATE TABLE `terppro_wbs_20180323` (
  661. `ID` int(11) NOT NULL,
  662. `erpprojectid` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'erp项目id,外键,指向terpproject.erpid',
  663. `wbsid` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbsid',
  664. `wbscode` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbs编号',
  665. `wbsname` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbs项目名称',
  666. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  667. PRIMARY KEY (`ID`) USING BTREE
  668. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'WBS项目表' ROW_FORMAT = Dynamic;
  669. -- ----------------------------
  670. -- Table structure for terppro_wbs_20180326
  671. -- ----------------------------
  672. DROP TABLE IF EXISTS `terppro_wbs_20180326`;
  673. CREATE TABLE `terppro_wbs_20180326` (
  674. `ID` int(11) NOT NULL,
  675. `erpprojectid` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'erp项目id,外键,指向terpproject.erpid',
  676. `wbsid` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbsid',
  677. `wbscode` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbs编号',
  678. `wbsname` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbs项目名称',
  679. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  680. `isreport` int(11) NULL DEFAULT NULL,
  681. `isdel` int(11) NULL DEFAULT NULL,
  682. PRIMARY KEY (`ID`) USING BTREE
  683. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'WBS项目表' ROW_FORMAT = Dynamic;
  684. -- ----------------------------
  685. -- Table structure for terppro_wbs_copy
  686. -- ----------------------------
  687. DROP TABLE IF EXISTS `terppro_wbs_copy`;
  688. CREATE TABLE `terppro_wbs_copy` (
  689. `ID` int(11) NOT NULL,
  690. `erpprojectid` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'erp项目id,外键,指向terpproject.erpid',
  691. `wbsid` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbsid',
  692. `wbscode` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbs编号',
  693. `wbsname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbs项目名称',
  694. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  695. PRIMARY KEY (`ID`) USING BTREE
  696. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'WBS项目表' ROW_FORMAT = Dynamic;
  697. -- ----------------------------
  698. -- Table structure for terpproject
  699. -- ----------------------------
  700. DROP TABLE IF EXISTS `terpproject`;
  701. CREATE TABLE `terpproject` (
  702. `ID` int(11) NOT NULL,
  703. `erpid` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联ERP项目ID / 项目定义ID',
  704. `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联ERP项目名称 / 项目定义描述',
  705. `code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联ERP项目编号 / 项目定义名称',
  706. `isdel` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  707. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  708. `importdate` datetime NULL DEFAULT NULL COMMENT '导入日期',
  709. `thiscreatetime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  710. PRIMARY KEY (`ID`) USING BTREE
  711. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  712. -- ----------------------------
  713. -- Table structure for terpproject_copy
  714. -- ----------------------------
  715. DROP TABLE IF EXISTS `terpproject_copy`;
  716. CREATE TABLE `terpproject_copy` (
  717. `ID` int(11) NOT NULL,
  718. `erpid` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联ERP项目ID / 项目定义ID',
  719. `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联ERP项目名称 / 项目定义描述',
  720. `code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联ERP项目编号 / 项目定义名称',
  721. `isdel` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  722. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  723. `importdate` datetime NULL DEFAULT NULL COMMENT '导入日期',
  724. PRIMARY KEY (`ID`) USING BTREE
  725. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  726. -- ----------------------------
  727. -- Table structure for texperience
  728. -- ----------------------------
  729. DROP TABLE IF EXISTS `texperience`;
  730. CREATE TABLE `texperience` (
  731. `ID` int(11) NOT NULL,
  732. `title` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标题',
  733. `content` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '故障描述',
  734. `date` datetime NULL DEFAULT NULL COMMENT '时间(isdel)',
  735. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识 (0:未删除,1:已删除)',
  736. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  737. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  738. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间(isdel)',
  739. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称(外键,指向tproject.ID)',
  740. `analysis` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '故障分析',
  741. `process` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '处理过程',
  742. `result` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '处理结果',
  743. PRIMARY KEY (`ID`) USING BTREE
  744. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '经验交流表' ROW_FORMAT = Dynamic;
  745. -- ----------------------------
  746. -- Table structure for texperience_attach
  747. -- ----------------------------
  748. DROP TABLE IF EXISTS `texperience_attach`;
  749. CREATE TABLE `texperience_attach` (
  750. `ID` int(11) NOT NULL COMMENT '主键',
  751. `experienceid` int(11) NULL DEFAULT NULL COMMENT '经验交流ID(外键,指向texperience.ID)',
  752. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  753. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  754. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  755. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  756. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  757. PRIMARY KEY (`ID`) USING BTREE
  758. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  759. -- ----------------------------
  760. -- Table structure for tinstalldebug
  761. -- ----------------------------
  762. DROP TABLE IF EXISTS `tinstalldebug`;
  763. CREATE TABLE `tinstalldebug` (
  764. `ID` int(11) NOT NULL,
  765. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称(外键,指向tproject.ID)',
  766. `reporttypeid` int(11) NULL DEFAULT NULL COMMENT '报告类型(1:日报,2:周报)',
  767. `startdate` datetime NULL DEFAULT NULL COMMENT '报告开始日期',
  768. `mineemployeeid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '井上服务人员(外键,多选,指向temployee.ID)',
  769. `downemployeeid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '井下服务人员(外键,多选,指向temployee.ID)',
  770. `mineemployeename` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '井上服务人员名称',
  771. `downemployeename` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '井下服务人员名称',
  772. `mainwork` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '主要工作',
  773. `unfinishwork` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '未完成工作',
  774. `question` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '存在问题',
  775. `workplan` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '工作计划',
  776. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间',
  777. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  778. `createtime` datetime NULL DEFAULT NULL,
  779. `isdel` int(11) NULL DEFAULT NULL,
  780. `enddate` datetime NULL DEFAULT NULL COMMENT '报告结束日期',
  781. `cc` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '邮件抄送人',
  782. PRIMARY KEY (`ID`) USING BTREE
  783. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '安装调试阶段报告表' ROW_FORMAT = Dynamic;
  784. -- ----------------------------
  785. -- Table structure for tinstalldebug_attachment
  786. -- ----------------------------
  787. DROP TABLE IF EXISTS `tinstalldebug_attachment`;
  788. CREATE TABLE `tinstalldebug_attachment` (
  789. `ID` int(11) NOT NULL,
  790. `installdebugid` int(11) NULL DEFAULT NULL,
  791. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  792. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  793. `isdel` int(11) NULL DEFAULT NULL,
  794. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  795. `uploaddate` datetime NULL DEFAULT NULL
  796. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  797. -- ----------------------------
  798. -- Table structure for tmainreporttype
  799. -- ----------------------------
  800. DROP TABLE IF EXISTS `tmainreporttype`;
  801. CREATE TABLE `tmainreporttype` (
  802. `ID` int(11) NOT NULL,
  803. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '报告类型名称',
  804. `isdel` int(11) NULL DEFAULT NULL
  805. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '运行维护阶段报告类型' ROW_FORMAT = Dynamic;
  806. -- ----------------------------
  807. -- Table structure for tmaintenance
  808. -- ----------------------------
  809. DROP TABLE IF EXISTS `tmaintenance`;
  810. CREATE TABLE `tmaintenance` (
  811. `ID` int(11) NOT NULL,
  812. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称(外键,指向tproject.ID)',
  813. `main` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '整体运行情况',
  814. `custuse` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '客户使用情况',
  815. `damage` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '产品损坏情况',
  816. `employeeid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  817. `reportdate` datetime NULL DEFAULT NULL COMMENT '报告时间',
  818. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  819. `createtime` datetime NULL DEFAULT NULL,
  820. `isdel` int(11) NULL DEFAULT NULL,
  821. `doctypeid` int(11) NULL DEFAULT NULL COMMENT '提交报告类型 ,指向 twarndays.ID',
  822. `cc` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '邮件抄送人',
  823. PRIMARY KEY (`ID`) USING BTREE
  824. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '运行维护阶段报告' ROW_FORMAT = Dynamic;
  825. -- ----------------------------
  826. -- Table structure for tmaintenance_attachment
  827. -- ----------------------------
  828. DROP TABLE IF EXISTS `tmaintenance_attachment`;
  829. CREATE TABLE `tmaintenance_attachment` (
  830. `ID` int(11) NOT NULL,
  831. `maintenanceid` int(11) NULL DEFAULT NULL,
  832. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  833. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  834. `isdel` int(11) NULL DEFAULT NULL,
  835. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  836. `uploaddate` datetime NULL DEFAULT NULL
  837. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  838. -- ----------------------------
  839. -- Table structure for tmarketlase
  840. -- ----------------------------
  841. DROP TABLE IF EXISTS `tmarketlase`;
  842. CREATE TABLE `tmarketlase` (
  843. `ID` int(11) NOT NULL,
  844. `name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '原因名称',
  845. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  846. `type` int(11) NULL DEFAULT NULL COMMENT '类型',
  847. PRIMARY KEY (`ID`) USING BTREE
  848. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目丢失原因表' ROW_FORMAT = Dynamic;
  849. -- ----------------------------
  850. -- Table structure for tmarketprofinal
  851. -- ----------------------------
  852. DROP TABLE IF EXISTS `tmarketprofinal`;
  853. CREATE TABLE `tmarketprofinal` (
  854. `ID` int(11) NOT NULL,
  855. `marketproject` int(11) NULL DEFAULT NULL COMMENT '市场项目名称外键(指向tmarketproject)',
  856. `isdel` int(11) NULL DEFAULT NULL,
  857. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  858. `createtime` datetime NULL DEFAULT NULL,
  859. `orgid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心',
  860. `describe` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '市场项目内容描述',
  861. `summary` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '销售工作情况总结',
  862. `problem` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '销售工作存在问题',
  863. `experience` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '销售工作借鉴经验',
  864. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  865. PRIMARY KEY (`ID`) USING BTREE
  866. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '市场项目总结报告表' ROW_FORMAT = Dynamic;
  867. -- ----------------------------
  868. -- Table structure for tmarketproject
  869. -- ----------------------------
  870. DROP TABLE IF EXISTS `tmarketproject`;
  871. CREATE TABLE `tmarketproject` (
  872. `ID` int(11) NOT NULL,
  873. `name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '市场项目名称',
  874. `typeid` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '市场项目类型(外键tmarkettype)',
  875. `typename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '市场项目类型名称',
  876. `sourceid` int(11) NULL DEFAULT NULL COMMENT '项目来源(外键tmarketsource)',
  877. `employee` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '具体负责人',
  878. `servicecenter` int(11) NULL DEFAULT NULL COMMENT '主要销售服务中心',
  879. `otherservicecenterid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '其他销售服务中心ID',
  880. `otherservicecentername` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '其他服务中心负责人名称',
  881. `province` int(11) NULL DEFAULT NULL COMMENT '省',
  882. `city` int(11) NULL DEFAULT NULL COMMENT '市',
  883. `describe` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '市场项目描述',
  884. `remark` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  885. `customer` int(11) NULL DEFAULT NULL COMMENT '客户名称',
  886. `ring` int(11) NULL DEFAULT NULL COMMENT '所属集团',
  887. `colliery` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所在矿井',
  888. `workplane` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所在工作面',
  889. `starttime` datetime NULL DEFAULT NULL COMMENT '项目开始时间',
  890. `specialrequire` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户特殊要求',
  891. `secondremark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  892. `cc` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮件抄送人',
  893. `projecttype` int(11) NULL DEFAULT NULL COMMENT '项目类型(外键tmarketprojecttype)',
  894. `markettype` int(11) NULL DEFAULT NULL COMMENT '项目市场类别',
  895. `tenderinfo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '招标基本信息',
  896. `dealprice` decimal(12, 2) NULL DEFAULT NULL COMMENT '项目成交价',
  897. `statusrecond` int(11) NULL DEFAULT NULL COMMENT '项目状态记录(外键tmarketstatu)',
  898. `losereason` int(11) NULL DEFAULT NULL COMMENT '项目丢失原因(外键tmarketlase)',
  899. `reasonremark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目状态记录备注',
  900. `oacode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'oa编号',
  901. `projectcontractcode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目合同编号',
  902. `time` datetime NULL DEFAULT NULL COMMENT '后续市场信息时间提醒',
  903. `marketinfo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '后续市场信息描述',
  904. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  905. `createtime` datetime NULL DEFAULT NULL,
  906. `isdel` int(11) NULL DEFAULT NULL,
  907. `employeename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '具体负责人名称',
  908. PRIMARY KEY (`ID`) USING BTREE
  909. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目市场信息表' ROW_FORMAT = Dynamic;
  910. -- ----------------------------
  911. -- Table structure for tmarketproject_area
  912. -- ----------------------------
  913. DROP TABLE IF EXISTS `tmarketproject_area`;
  914. CREATE TABLE `tmarketproject_area` (
  915. `ID` int(11) NOT NULL,
  916. `provinceid` int(11) NULL DEFAULT NULL COMMENT '省',
  917. `cityid` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '市',
  918. `cityText` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '市名称',
  919. `marketproject` int(11) NULL DEFAULT NULL COMMENT '市场项目名称外键(指向tmarketproject)',
  920. `isdel` int(11) NULL DEFAULT NULL,
  921. PRIMARY KEY (`ID`) USING BTREE
  922. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目市场信息矿井行政区域表' ROW_FORMAT = Dynamic;
  923. -- ----------------------------
  924. -- Table structure for tmarketproject_attachment
  925. -- ----------------------------
  926. DROP TABLE IF EXISTS `tmarketproject_attachment`;
  927. CREATE TABLE `tmarketproject_attachment` (
  928. `ID` int(11) NOT NULL,
  929. `marketproject` int(11) NULL DEFAULT NULL COMMENT '市场项目外键(指向tmarketproject)',
  930. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  931. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  932. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  933. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识(isdel)',
  934. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  935. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  936. `file` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '(isdel)',
  937. PRIMARY KEY (`ID`) USING BTREE
  938. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目市场信息附件表' ROW_FORMAT = Dynamic;
  939. -- ----------------------------
  940. -- Table structure for tmarketproject_offer
  941. -- ----------------------------
  942. DROP TABLE IF EXISTS `tmarketproject_offer`;
  943. CREATE TABLE `tmarketproject_offer` (
  944. `ID` int(11) NOT NULL,
  945. `price` double NULL DEFAULT NULL COMMENT '天玛报价',
  946. `otherprice` double NULL DEFAULT NULL COMMENT '竞争对手报价',
  947. `time` int(11) NULL DEFAULT NULL COMMENT '报价次数',
  948. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  949. `marketproject` int(11) NULL DEFAULT NULL COMMENT '市场项目外键(指向tmarketproject)',
  950. PRIMARY KEY (`ID`) USING BTREE
  951. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目市场信息天玛报价表' ROW_FORMAT = Dynamic;
  952. -- ----------------------------
  953. -- Table structure for tmarketproject_people
  954. -- ----------------------------
  955. DROP TABLE IF EXISTS `tmarketproject_people`;
  956. CREATE TABLE `tmarketproject_people` (
  957. `ID` int(11) NOT NULL,
  958. `marketproject` int(11) NULL DEFAULT NULL COMMENT '市场项目外键(指向tmarketproject)',
  959. `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目负责人',
  960. `sex` int(11) NULL DEFAULT NULL COMMENT '性别',
  961. `duty` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '职位',
  962. `linktel` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系方式',
  963. `type` int(11) NULL DEFAULT NULL COMMENT '人员类型',
  964. `state` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关键状态',
  965. `isdel` int(11) NULL DEFAULT NULL,
  966. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  967. PRIMARY KEY (`ID`) USING BTREE
  968. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目市场信息人员表' ROW_FORMAT = Dynamic;
  969. -- ----------------------------
  970. -- Table structure for tmarketproject_peopletype
  971. -- ----------------------------
  972. DROP TABLE IF EXISTS `tmarketproject_peopletype`;
  973. CREATE TABLE `tmarketproject_peopletype` (
  974. `ID` int(11) NOT NULL,
  975. `name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型名称',
  976. `isdel` int(11) NULL DEFAULT NULL,
  977. PRIMARY KEY (`ID`) USING BTREE
  978. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目市场信息人员类型' ROW_FORMAT = Dynamic;
  979. -- ----------------------------
  980. -- Table structure for tmarketproject_person
  981. -- ----------------------------
  982. DROP TABLE IF EXISTS `tmarketproject_person`;
  983. CREATE TABLE `tmarketproject_person` (
  984. `ID` int(11) NOT NULL,
  985. `marketproject` int(11) NULL DEFAULT NULL COMMENT '市场项目外键(指向tmarketproject)',
  986. `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目负责人姓名',
  987. `duty` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '职务',
  988. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  989. `linktel` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系方式',
  990. `work` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责工作',
  991. PRIMARY KEY (`ID`) USING BTREE
  992. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目市场信息相关人物' ROW_FORMAT = Dynamic;
  993. -- ----------------------------
  994. -- Table structure for tmarketproject_rival
  995. -- ----------------------------
  996. DROP TABLE IF EXISTS `tmarketproject_rival`;
  997. CREATE TABLE `tmarketproject_rival` (
  998. `ID` int(11) NOT NULL,
  999. `name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '竞争对手名称',
  1000. `record` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '竞争对手记录',
  1001. `isdel` int(11) NULL DEFAULT NULL,
  1002. `marketproject` int(11) NULL DEFAULT NULL COMMENT '市场项目外键(指向tmarketproject)',
  1003. PRIMARY KEY (`ID`) USING BTREE
  1004. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目市场信息竞争对手' ROW_FORMAT = Dynamic;
  1005. -- ----------------------------
  1006. -- Table structure for tmarketproject_tender
  1007. -- ----------------------------
  1008. DROP TABLE IF EXISTS `tmarketproject_tender`;
  1009. CREATE TABLE `tmarketproject_tender` (
  1010. `ID` int(11) NOT NULL,
  1011. `marketproject` int(11) NULL DEFAULT NULL COMMENT '市场项目外键(指向tmarketproject)',
  1012. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件自动生成名称',
  1013. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  1014. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1015. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识(isdel)',
  1016. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  1017. `uploaddate` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传日期',
  1018. `file` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '(isdel)',
  1019. PRIMARY KEY (`ID`) USING BTREE
  1020. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目市场信息招标' ROW_FORMAT = Dynamic;
  1021. -- ----------------------------
  1022. -- Table structure for tmarketprojecttype
  1023. -- ----------------------------
  1024. DROP TABLE IF EXISTS `tmarketprojecttype`;
  1025. CREATE TABLE `tmarketprojecttype` (
  1026. `ID` int(11) NOT NULL,
  1027. `name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型名称',
  1028. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1029. PRIMARY KEY (`ID`) USING BTREE
  1030. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目类别(项目市场信息)' ROW_FORMAT = Dynamic;
  1031. -- ----------------------------
  1032. -- Table structure for tmarketprotrack
  1033. -- ----------------------------
  1034. DROP TABLE IF EXISTS `tmarketprotrack`;
  1035. CREATE TABLE `tmarketprotrack` (
  1036. `ID` int(11) NOT NULL,
  1037. `marketproject` int(11) NULL DEFAULT NULL COMMENT '市场项目外键(指向tmarketproject)',
  1038. `orgid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心',
  1039. `isdel` int(11) NULL DEFAULT NULL,
  1040. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  1041. `createtime` datetime NULL DEFAULT NULL,
  1042. PRIMARY KEY (`ID`) USING BTREE
  1043. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '市场项目跟踪记录' ROW_FORMAT = Dynamic;
  1044. -- ----------------------------
  1045. -- Table structure for tmarketprotrack_attachment
  1046. -- ----------------------------
  1047. DROP TABLE IF EXISTS `tmarketprotrack_attachment`;
  1048. CREATE TABLE `tmarketprotrack_attachment` (
  1049. `ID` int(11) NOT NULL,
  1050. `marketprotrack` int(11) NULL DEFAULT NULL COMMENT '市场项目跟踪记录(外键,指向tmarketprotrack)',
  1051. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  1052. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  1053. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1054. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识(isdel)',
  1055. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  1056. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  1057. `file` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '(isdel)',
  1058. PRIMARY KEY (`ID`) USING BTREE
  1059. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '市场项目跟踪记录附件' ROW_FORMAT = Dynamic;
  1060. -- ----------------------------
  1061. -- Table structure for tmarketprotrack_detail
  1062. -- ----------------------------
  1063. DROP TABLE IF EXISTS `tmarketprotrack_detail`;
  1064. CREATE TABLE `tmarketprotrack_detail` (
  1065. `ID` int(11) NOT NULL,
  1066. `marketprotrack` int(11) NULL DEFAULT NULL COMMENT '市场项目跟踪记录(外键,指向tmarketprotrack)',
  1067. `isdel` int(11) NULL DEFAULT NULL,
  1068. `salerecond` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '销售记录',
  1069. `time` datetime NULL DEFAULT NULL COMMENT '时间',
  1070. `work` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '销售工作',
  1071. `creater` int(11) NULL DEFAULT NULL COMMENT '填报人',
  1072. PRIMARY KEY (`ID`) USING BTREE
  1073. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '市场项目跟踪记录明细表' ROW_FORMAT = Dynamic;
  1074. -- ----------------------------
  1075. -- Table structure for tmarketprotrack_trouble
  1076. -- ----------------------------
  1077. DROP TABLE IF EXISTS `tmarketprotrack_trouble`;
  1078. CREATE TABLE `tmarketprotrack_trouble` (
  1079. `ID` int(11) NOT NULL,
  1080. `marketprotrack` int(11) NULL DEFAULT NULL COMMENT '市场项目跟踪记录(外键,指向tmarketprotrack)',
  1081. `isdel` int(11) NULL DEFAULT NULL,
  1082. `trouble` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目困难',
  1083. `describe` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述',
  1084. PRIMARY KEY (`ID`) USING BTREE
  1085. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '市场项目跟踪记录明细(项目困难)表' ROW_FORMAT = Dynamic;
  1086. -- ----------------------------
  1087. -- Table structure for tmarketprotype
  1088. -- ----------------------------
  1089. DROP TABLE IF EXISTS `tmarketprotype`;
  1090. CREATE TABLE `tmarketprotype` (
  1091. `ID` int(11) NOT NULL,
  1092. `name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '市场类别名称',
  1093. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1094. PRIMARY KEY (`ID`) USING BTREE
  1095. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目市场类别表' ROW_FORMAT = Dynamic;
  1096. -- ----------------------------
  1097. -- Table structure for tmarketsource
  1098. -- ----------------------------
  1099. DROP TABLE IF EXISTS `tmarketsource`;
  1100. CREATE TABLE `tmarketsource` (
  1101. `ID` int(11) NOT NULL,
  1102. `name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  1103. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1104. PRIMARY KEY (`ID`) USING BTREE
  1105. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目来源表' ROW_FORMAT = Dynamic;
  1106. -- ----------------------------
  1107. -- Table structure for tmarketstatu
  1108. -- ----------------------------
  1109. DROP TABLE IF EXISTS `tmarketstatu`;
  1110. CREATE TABLE `tmarketstatu` (
  1111. `ID` int(11) NOT NULL,
  1112. `name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态记录名称',
  1113. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1114. PRIMARY KEY (`ID`) USING BTREE
  1115. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目状态记录' ROW_FORMAT = Dynamic;
  1116. -- ----------------------------
  1117. -- Table structure for tmarkettype
  1118. -- ----------------------------
  1119. DROP TABLE IF EXISTS `tmarkettype`;
  1120. CREATE TABLE `tmarkettype` (
  1121. `ID` int(11) NOT NULL,
  1122. `name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目类型名称',
  1123. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1124. PRIMARY KEY (`ID`) USING BTREE
  1125. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '市场项目类型' ROW_FORMAT = Dynamic;
  1126. -- ----------------------------
  1127. -- Table structure for tmatchnum
  1128. -- ----------------------------
  1129. DROP TABLE IF EXISTS `tmatchnum`;
  1130. CREATE TABLE `tmatchnum` (
  1131. `ID` int(11) NOT NULL,
  1132. `name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1133. `isdel` int(11) NULL DEFAULT NULL,
  1134. `isdisable` int(11) NULL DEFAULT NULL,
  1135. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1136. PRIMARY KEY (`ID`) USING BTREE
  1137. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  1138. -- ----------------------------
  1139. -- Table structure for tmiss
  1140. -- ----------------------------
  1141. DROP TABLE IF EXISTS `tmiss`;
  1142. CREATE TABLE `tmiss` (
  1143. `ID` int(11) NOT NULL,
  1144. `receiptid` int(11) NULL DEFAULT NULL COMMENT '接货记录ID(外键,指向treceive)',
  1145. `sendaddress` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货地址',
  1146. `receiveaddress` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '接货地址',
  1147. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  1148. `createtime` datetime NULL DEFAULT NULL,
  1149. `isdel` int(11) NULL DEFAULT NULL,
  1150. `mistakestype` int(11) NULL DEFAULT NULL COMMENT '错漏记录类型',
  1151. `missingno` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '记录单号',
  1152. `receiptdate` datetime NULL DEFAULT NULL COMMENT '接货时间',
  1153. `receipter` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '接货人员',
  1154. `solvedate` datetime NULL DEFAULT NULL COMMENT '解决时间',
  1155. `relation` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联记录指向treceive',
  1156. `totalnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '总数量',
  1157. `totalmissingnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '总错漏货数量',
  1158. `issolve` int(11) NULL DEFAULT NULL COMMENT '是否解决(1,是;0,否)',
  1159. `relationname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联记录',
  1160. `cc` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '邮件抄送人',
  1161. PRIMARY KEY (`ID`) USING BTREE
  1162. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '错发漏发记录' ROW_FORMAT = Dynamic;
  1163. -- ----------------------------
  1164. -- Table structure for tmiss_detail
  1165. -- ----------------------------
  1166. DROP TABLE IF EXISTS `tmiss_detail`;
  1167. CREATE TABLE `tmiss_detail` (
  1168. `ID` int(11) NOT NULL,
  1169. `missid` int(11) NULL DEFAULT NULL COMMENT '接货记录ID(外键,指向tmiss.ID)',
  1170. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  1171. `num` decimal(12, 2) NULL DEFAULT NULL COMMENT '数量',
  1172. `createtime` datetime NULL DEFAULT NULL,
  1173. `isdel` int(11) NULL DEFAULT NULL,
  1174. `isprojectid` int(11) NULL DEFAULT NULL COMMENT '涉及项目 0:否,1:是',
  1175. `productname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '应发货品名',
  1176. `missingproduct` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '错漏货品名称',
  1177. `missingnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '错漏数量',
  1178. `missingproductname` varchar(150) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '(isdel)',
  1179. PRIMARY KEY (`ID`) USING BTREE
  1180. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '错发漏发记录明细表' ROW_FORMAT = Dynamic;
  1181. -- ----------------------------
  1182. -- Table structure for tmodel
  1183. -- ----------------------------
  1184. DROP TABLE IF EXISTS `tmodel`;
  1185. CREATE TABLE `tmodel` (
  1186. `ID` int(11) NOT NULL,
  1187. `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '厂家名称',
  1188. `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  1189. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1190. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  1191. `num` int(11) NULL DEFAULT NULL COMMENT '累计使用次数',
  1192. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识',
  1193. PRIMARY KEY (`ID`) USING BTREE
  1194. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '支架型号表' ROW_FORMAT = Dynamic;
  1195. -- ----------------------------
  1196. -- Table structure for tnotice
  1197. -- ----------------------------
  1198. DROP TABLE IF EXISTS `tnotice`;
  1199. CREATE TABLE `tnotice` (
  1200. `ID` int(11) NOT NULL,
  1201. `type` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型',
  1202. `title` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标题',
  1203. `content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '通知内容(解析之前)',
  1204. `date` datetime NULL DEFAULT NULL COMMENT '时间',
  1205. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识 (0:未删除,1:已删除)',
  1206. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  1207. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1208. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间',
  1209. `new` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '通知内容(解析之后)',
  1210. PRIMARY KEY (`ID`) USING BTREE
  1211. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '通知' ROW_FORMAT = Dynamic;
  1212. -- ----------------------------
  1213. -- Table structure for tnotice_attach
  1214. -- ----------------------------
  1215. DROP TABLE IF EXISTS `tnotice_attach`;
  1216. CREATE TABLE `tnotice_attach` (
  1217. `ID` int(11) NOT NULL COMMENT '主键',
  1218. `noticeid` int(11) NULL DEFAULT NULL COMMENT '通知ID(外键,指向tnotice.ID)',
  1219. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  1220. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  1221. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1222. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  1223. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  1224. PRIMARY KEY (`ID`) USING BTREE
  1225. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  1226. -- ----------------------------
  1227. -- Table structure for torganization
  1228. -- ----------------------------
  1229. DROP TABLE IF EXISTS `torganization`;
  1230. CREATE TABLE `torganization` (
  1231. `ID` int(11) NOT NULL,
  1232. `PID` int(11) NULL DEFAULT NULL COMMENT '父级组织机构ID(树形,指向torganization.ID)',
  1233. `orgcode` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机构编码',
  1234. `orgname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机构名称',
  1235. `isdel` int(11) NULL DEFAULT NULL,
  1236. `importdate` datetime NULL DEFAULT NULL COMMENT '导入日期',
  1237. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  1238. `oaid` char(36) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'oa部门ID',
  1239. `oapid` char(36) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'oa部门父ID',
  1240. `isarea` int(11) NULL DEFAULT NULL COMMENT '是否是区域(0:不是;1:是)',
  1241. `type` int(11) NULL DEFAULT NULL COMMENT '组织类型指向torgtype',
  1242. PRIMARY KEY (`ID`) USING BTREE
  1243. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  1244. -- ----------------------------
  1245. -- Table structure for torganizationcode
  1246. -- ----------------------------
  1247. DROP TABLE IF EXISTS `torganizationcode`;
  1248. CREATE TABLE `torganizationcode` (
  1249. `ID` int(11) NOT NULL COMMENT '主键',
  1250. `orgid` int(11) NULL DEFAULT NULL COMMENT '机构ID',
  1251. `province` int(11) NULL DEFAULT NULL COMMENT '省份',
  1252. `city` int(11) NULL DEFAULT NULL COMMENT '城市',
  1253. `code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编码',
  1254. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识',
  1255. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1256. PRIMARY KEY (`ID`) USING BTREE
  1257. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '组织机构-省市编码' ROW_FORMAT = Dynamic;
  1258. -- ----------------------------
  1259. -- Table structure for torganizationposition
  1260. -- ----------------------------
  1261. DROP TABLE IF EXISTS `torganizationposition`;
  1262. CREATE TABLE `torganizationposition` (
  1263. `ID` int(11) NOT NULL COMMENT '主键',
  1264. `orgid` int(11) NULL DEFAULT NULL COMMENT '机构ID',
  1265. `positionname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '岗位名称',
  1266. `positionlevel` int(11) NULL DEFAULT NULL COMMENT '岗位级别',
  1267. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识',
  1268. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1269. `importdate` datetime NULL DEFAULT NULL COMMENT '导入日期',
  1270. `createtime` datetime NULL DEFAULT NULL,
  1271. `oaid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'oa岗位ID',
  1272. `oaorgid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'oa机构ID',
  1273. `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1274. PRIMARY KEY (`ID`) USING BTREE
  1275. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '组织岗位' ROW_FORMAT = Dynamic;
  1276. -- ----------------------------
  1277. -- Table structure for torgtype
  1278. -- ----------------------------
  1279. DROP TABLE IF EXISTS `torgtype`;
  1280. CREATE TABLE `torgtype` (
  1281. `ID` int(11) NOT NULL COMMENT '主键',
  1282. `code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编码',
  1283. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  1284. `level` int(11) NULL DEFAULT NULL COMMENT '级别',
  1285. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识',
  1286. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1287. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  1288. PRIMARY KEY (`ID`) USING BTREE
  1289. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '组织类型' ROW_FORMAT = Dynamic;
  1290. -- ----------------------------
  1291. -- Table structure for totherlog
  1292. -- ----------------------------
  1293. DROP TABLE IF EXISTS `totherlog`;
  1294. CREATE TABLE `totherlog` (
  1295. `ID` int(11) NOT NULL COMMENT '主键',
  1296. `workdate` datetime NULL DEFAULT NULL COMMENT '工作日期',
  1297. `workemployeeid` int(11) NULL DEFAULT NULL COMMENT '工作人员(外键指向temployee.id)',
  1298. `otheremployeeid` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '其他工作人员(多选,外键指向temployee.id)',
  1299. `otheremployeename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '其他工作人员姓名',
  1300. `isbusitravel` tinyint(4) NULL DEFAULT NULL COMMENT '出差状态(0:未出差 1:已出差)',
  1301. `isdel` tinyint(4) NULL DEFAULT NULL COMMENT '删除标识',
  1302. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  1303. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  1304. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键,指向torganization.id)'
  1305. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  1306. -- ----------------------------
  1307. -- Table structure for totherlog_attach
  1308. -- ----------------------------
  1309. DROP TABLE IF EXISTS `totherlog_attach`;
  1310. CREATE TABLE `totherlog_attach` (
  1311. `ID` int(11) NOT NULL COMMENT '主键',
  1312. `otherlogid` int(11) NULL DEFAULT NULL COMMENT '工作日志主表(外键,指向totherlog.ID)',
  1313. `filename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  1314. `filerealname` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '文件名称',
  1315. `isdel` tinyint(4) NULL DEFAULT NULL COMMENT '删除标识',
  1316. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  1317. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期'
  1318. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  1319. -- ----------------------------
  1320. -- Table structure for totherlog_detail
  1321. -- ----------------------------
  1322. DROP TABLE IF EXISTS `totherlog_detail`;
  1323. CREATE TABLE `totherlog_detail` (
  1324. `ID` int(11) NOT NULL,
  1325. `otherlogid` int(11) NULL DEFAULT NULL COMMENT '工作日志主表(外键指向totherlog.id)',
  1326. `worktypeid` tinyint(4) NULL DEFAULT NULL COMMENT '工作类型(0:市场销售 1:货品批发2:出厂服务 3:日常工作)',
  1327. `mession` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务',
  1328. `worktime_start` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作时间_开始',
  1329. `worktime_end` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作时间_结束',
  1330. `workcontent` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '工作内容',
  1331. `isdel` tinyint(4) NULL DEFAULT NULL COMMENT '删除标识'
  1332. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '其他工作日志工作内容明细表' ROW_FORMAT = Dynamic;
  1333. -- ----------------------------
  1334. -- Table structure for totherlog_employee
  1335. -- ----------------------------
  1336. DROP TABLE IF EXISTS `totherlog_employee`;
  1337. CREATE TABLE `totherlog_employee` (
  1338. `ID` int(11) NOT NULL,
  1339. `otherlogid` int(11) NULL DEFAULT NULL COMMENT '工作日志主表(外键指向totherlog.id)',
  1340. `employeeid` int(11) NULL DEFAULT NULL COMMENT '其他工作人员id(外键指向temployee.id)',
  1341. `isdel` tinyint(4) NULL DEFAULT NULL COMMENT '删除标识(0:未删除 1:已删除)'
  1342. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '其他工作日志其他工作人员明细表' ROW_FORMAT = Dynamic;
  1343. -- ----------------------------
  1344. -- Table structure for tpartdamage
  1345. -- ----------------------------
  1346. DROP TABLE IF EXISTS `tpartdamage`;
  1347. CREATE TABLE `tpartdamage` (
  1348. `ID` int(11) NOT NULL,
  1349. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称(外键,指向tproject.ID)',
  1350. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间(isdel)',
  1351. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  1352. `createtime` datetime NULL DEFAULT NULL,
  1353. `isdel` int(11) NULL DEFAULT NULL,
  1354. `okrate` decimal(10, 2) NULL DEFAULT NULL COMMENT '目标合格率',
  1355. PRIMARY KEY (`ID`) USING BTREE
  1356. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目元件损坏情况表' ROW_FORMAT = Dynamic;
  1357. -- ----------------------------
  1358. -- Table structure for tpartdamage_detail
  1359. -- ----------------------------
  1360. DROP TABLE IF EXISTS `tpartdamage_detail`;
  1361. CREATE TABLE `tpartdamage_detail` (
  1362. `ID` int(11) NOT NULL,
  1363. `partdamageid` int(11) NULL DEFAULT NULL COMMENT '项目元件损坏ID(外键,指向tpartdamage.ID)',
  1364. `createtime` datetime NULL DEFAULT NULL,
  1365. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1366. `date` datetime NULL DEFAULT NULL COMMENT '损坏时间',
  1367. `num` int(11) NULL DEFAULT NULL COMMENT '损坏元器件总数量',
  1368. `remark` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注',
  1369. `softtext` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '软件特殊情况记录',
  1370. `tsupplylist_detailnewid` int(11) NULL DEFAULT NULL COMMENT '物料清单明细表id,外键指向tsupplylist_detailnew.id',
  1371. PRIMARY KEY (`ID`) USING BTREE
  1372. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '元器件累计损坏统计明细' ROW_FORMAT = Dynamic;
  1373. -- ----------------------------
  1374. -- Table structure for tpartinstall
  1375. -- ----------------------------
  1376. DROP TABLE IF EXISTS `tpartinstall`;
  1377. CREATE TABLE `tpartinstall` (
  1378. `ID` int(11) NOT NULL,
  1379. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称(外键,指向tproject.ID)',
  1380. `date` datetime NULL DEFAULT NULL COMMENT '统计时间',
  1381. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  1382. `createtime` datetime NULL DEFAULT NULL,
  1383. `isdel` int(11) NULL DEFAULT NULL,
  1384. `passrate` decimal(10, 2) NULL DEFAULT NULL COMMENT '目标合格率',
  1385. PRIMARY KEY (`ID`) USING BTREE
  1386. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '一次安装合格率' ROW_FORMAT = Dynamic;
  1387. -- ----------------------------
  1388. -- Table structure for tpartinstall_detail
  1389. -- ----------------------------
  1390. DROP TABLE IF EXISTS `tpartinstall_detail`;
  1391. CREATE TABLE `tpartinstall_detail` (
  1392. `ID` int(11) NOT NULL COMMENT '主键',
  1393. `partinstallid` int(11) NULL DEFAULT NULL COMMENT '一次安装合格率统计表ID(外键,指向tpartinstall.ID)',
  1394. `partid` int(11) NULL DEFAULT NULL COMMENT '元件名称',
  1395. `num` int(11) NULL DEFAULT NULL COMMENT '安装数量',
  1396. `failnum` int(11) NULL DEFAULT NULL COMMENT '不合格品数量',
  1397. `okrate` decimal(12, 2) NULL DEFAULT NULL COMMENT '合格率',
  1398. `remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  1399. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识(0:未删除,1:已删除)',
  1400. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1401. `supplylistid` int(11) NULL DEFAULT NULL COMMENT '物料清单id,外键指向tsupplylistnew.id(或tsupplylist.id相同)',
  1402. `productcode` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  1403. PRIMARY KEY (`ID`) USING BTREE
  1404. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '一次安装合格率明细' ROW_FORMAT = Dynamic;
  1405. -- ----------------------------
  1406. -- Table structure for tpick
  1407. -- ----------------------------
  1408. DROP TABLE IF EXISTS `tpick`;
  1409. CREATE TABLE `tpick` (
  1410. `ID` int(11) NOT NULL COMMENT '主键',
  1411. `salecenter` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区域/销售服务中心',
  1412. `employeename` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人',
  1413. `pickcode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请单号',
  1414. `pickdate` datetime NULL DEFAULT NULL COMMENT '申请日期',
  1415. `picktype` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '采购类型',
  1416. `urgentlevel` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '紧急程度',
  1417. `reservecode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留号码',
  1418. `finishdate` datetime NULL DEFAULT NULL COMMENT '办结日期',
  1419. `totalmoney` decimal(12, 2) NULL DEFAULT NULL COMMENT '物料总价',
  1420. `ledgerinfo` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '总账科目信息',
  1421. `ledgercode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '总账科目编号',
  1422. `orderinfo` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '内部订单信息',
  1423. `ordercode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '内部订单编号',
  1424. `costcenterinfo` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '成本中心信息',
  1425. `costcentercode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '成本中心编号',
  1426. `projectinfo` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目信息',
  1427. `projectledgercode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目编号',
  1428. `remark` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注说明',
  1429. `createtime` datetime NULL DEFAULT NULL COMMENT '导入时间',
  1430. `empjobnumber` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人工号',
  1431. PRIMARY KEY (`ID`) USING BTREE
  1432. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '费用领料单主表' ROW_FORMAT = Dynamic;
  1433. -- ----------------------------
  1434. -- Table structure for tpick_product
  1435. -- ----------------------------
  1436. DROP TABLE IF EXISTS `tpick_product`;
  1437. CREATE TABLE `tpick_product` (
  1438. `ID` int(11) NOT NULL,
  1439. `pickcode` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请单号,外键指向tpick.pickcode',
  1440. `productcode` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1441. `productname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1442. `productunit` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1443. `price` decimal(12, 2) NULL DEFAULT NULL,
  1444. `stockloc` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1445. `stockcode` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1446. `createtime` datetime NULL DEFAULT NULL COMMENT '导入时间',
  1447. `productnum` int(11) NULL DEFAULT NULL,
  1448. `projectid` int(11) NULL DEFAULT NULL COMMENT '关联项目,外键指向tproject.id',
  1449. `remark` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联备注',
  1450. PRIMARY KEY (`ID`) USING BTREE
  1451. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '费用领料单-产品表' ROW_FORMAT = Dynamic;
  1452. -- ----------------------------
  1453. -- Table structure for tproduct
  1454. -- ----------------------------
  1455. DROP TABLE IF EXISTS `tproduct`;
  1456. CREATE TABLE `tproduct` (
  1457. `ID` int(11) NOT NULL,
  1458. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品名称、物料长描述',
  1459. `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注(为空,未导入,后期不用可删除该冗余字段)',
  1460. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1461. `model` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '型号/物料短描述(规格型号Z3)',
  1462. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1463. `code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  1464. `productno` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品号(为空,未导入,后期不用可删除该冗余字段)',
  1465. `unit` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '基本计量单位',
  1466. `importdate` datetime NULL DEFAULT NULL COMMENT '导入日期',
  1467. `erpid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'ERP产品ID(为空,未导入,后期不用可删除该冗余字段)',
  1468. `groupno` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料组',
  1469. `type` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料类型',
  1470. `typedesc` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料类型描述',
  1471. `unitdesc` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '基本计量单位描述',
  1472. PRIMARY KEY (`ID`) USING BTREE
  1473. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '元件档案/产品档案' ROW_FORMAT = Dynamic;
  1474. -- ----------------------------
  1475. -- Table structure for tproduct_copy20180416
  1476. -- ----------------------------
  1477. DROP TABLE IF EXISTS `tproduct_copy20180416`;
  1478. CREATE TABLE `tproduct_copy20180416` (
  1479. `ID` int(11) NOT NULL,
  1480. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品名称、物料长描述',
  1481. `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注(为空,未导入,后期不用可删除该冗余字段)',
  1482. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1483. `model` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '型号/物料短描述(规格型号Z3)',
  1484. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1485. `code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  1486. `productno` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品号(为空,未导入,后期不用可删除该冗余字段)',
  1487. `unit` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '基本计量单位',
  1488. `importdate` datetime NULL DEFAULT NULL COMMENT '导入日期',
  1489. `erpid` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'ERP产品ID(为空,未导入,后期不用可删除该冗余字段)',
  1490. `groupno` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料组',
  1491. `type` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料类型',
  1492. `typedesc` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料类型描述',
  1493. `unitdesc` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '基本计量单位描述',
  1494. PRIMARY KEY (`ID`) USING BTREE
  1495. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '元件档案/产品档案' ROW_FORMAT = Dynamic;
  1496. -- ----------------------------
  1497. -- Table structure for tproduct_type
  1498. -- ----------------------------
  1499. DROP TABLE IF EXISTS `tproduct_type`;
  1500. CREATE TABLE `tproduct_type` (
  1501. `ID` int(11) NOT NULL,
  1502. `typename` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料类型',
  1503. `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  1504. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识(1:已删,0:未删)',
  1505. `projecttype` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目类型,多选',
  1506. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  1507. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1508. `projecttype_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目类型名称',
  1509. PRIMARY KEY (`ID`) USING BTREE
  1510. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '元件分类表' ROW_FORMAT = Dynamic;
  1511. -- ----------------------------
  1512. -- Table structure for tproject
  1513. -- ----------------------------
  1514. DROP TABLE IF EXISTS `tproject`;
  1515. CREATE TABLE `tproject` (
  1516. `ID` int(11) NOT NULL COMMENT '主键',
  1517. `shortname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目简称',
  1518. `groupid` int(11) NULL DEFAULT NULL COMMENT '所属集团',
  1519. `coal` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '使用煤矿',
  1520. `provinceid` int(11) NULL DEFAULT NULL COMMENT '省(外键,指向tarea.ID)',
  1521. `cityid` int(11) NULL DEFAULT NULL COMMENT '市(外键,指向tarea.ID)',
  1522. `countyid` int(11) NULL DEFAULT NULL COMMENT '县(外键,指向tarea.ID)',
  1523. `address` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '详细地址',
  1524. `typeid` int(11) NULL DEFAULT NULL COMMENT '项目类型(外键,指向tprojecttype.ID)',
  1525. `matchnum` int(11) NULL DEFAULT NULL COMMENT '配套套数',
  1526. `repairsate` int(11) NULL DEFAULT NULL COMMENT '项目维修状况(外键,指向trepairstate.ID)',
  1527. `runstate` int(11) NULL DEFAULT NULL COMMENT '项目运行状态(外键,指向trunstate.ID)',
  1528. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键,指向tsalecenter.ID)',
  1529. `majoremployeeid` int(11) NULL DEFAULT NULL COMMENT '项目主要负责人(外键,指向temployee.ID)',
  1530. `otheremployee` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目其他负责人(外键,多选,指向temployee.ID)',
  1531. `name` int(11) NULL DEFAULT NULL COMMENT '关联ERP项目',
  1532. `code` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联ERP编号',
  1533. `arrivedate` datetime NULL DEFAULT NULL COMMENT '设备到货时间',
  1534. `installdate` datetime NULL DEFAULT NULL COMMENT '井下安装时间',
  1535. `productdate` datetime NULL DEFAULT NULL COMMENT '开始生产时间',
  1536. `warrantystart` datetime NULL DEFAULT NULL COMMENT '质保期-起始',
  1537. `warranty` int(11) NULL DEFAULT NULL COMMENT '质保期',
  1538. `warrantyend` datetime NULL DEFAULT NULL COMMENT '质保期-结束',
  1539. `parentproject` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '前置项目(多选外键,指向tproject.ID)',
  1540. `starttime` datetime NULL DEFAULT NULL COMMENT '工作面使用起始时间',
  1541. `endtime` datetime NULL DEFAULT NULL COMMENT '工作面使用结束时间',
  1542. `coalname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作面使用煤矿',
  1543. `facename` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '使用煤矿',
  1544. `auxiliaryvalvesuppid` int(11) NULL DEFAULT NULL COMMENT '支架辅助阀-厂家(外键,指向tsupplier.ID)',
  1545. `onewayvalvemodel` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支架立柱液控单向阀-型号',
  1546. `suppfiltsupplierid` int(11) NULL DEFAULT NULL COMMENT '支架过滤器厂家(外键,指向tsupplier.ID)',
  1547. `suppfiltmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支架过滤器型号',
  1548. `suppfilttype` int(11) NULL DEFAULT NULL COMMENT '支架过滤器类型',
  1549. `highpresupplierid` int(11) NULL DEFAULT NULL COMMENT '高压过滤站厂家(外键,指向tsupplier.ID)',
  1550. `highpremodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '高压过滤站型号',
  1551. `highpretype` int(11) NULL DEFAULT NULL COMMENT '高压过滤站类型',
  1552. `suppcontsupplierid` int(11) NULL DEFAULT NULL COMMENT '支架电控系统-厂家(外键,指向tsupplier.ID)',
  1553. `suppcontmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支架控制器-型号',
  1554. `posdetectype` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '采煤机位置检测装置类型',
  1555. `upload` int(11) NULL DEFAULT NULL COMMENT '数据上传(有/无)(0:无,1:有)',
  1556. `machinerytrack` int(11) NULL DEFAULT NULL COMMENT '跟机自动化(有/无)(0:无,1:有)',
  1557. `liquidsuppsupplierid` int(11) NULL DEFAULT NULL COMMENT '集成供液系统-厂家(外键,指向tsupplier.ID)',
  1558. `liquidsuppmodel` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集成供液系统-型号',
  1559. `plc` int(11) NULL DEFAULT NULL COMMENT '集成供液系统-PLC信息(0: 无,1: 有)',
  1560. `varyfrequency` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集成供液系统-变频信息',
  1561. `emulsionpumpsupplierid` int(11) NULL DEFAULT NULL COMMENT '乳化液泵站厂家(外键,指向tsupplier.ID)',
  1562. `emulsionpumpmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '乳化液泵站型号',
  1563. `emulsionpumpnum` double NULL DEFAULT NULL COMMENT '乳化液泵站数量',
  1564. `spraypumpsupplierid` int(11) NULL DEFAULT NULL COMMENT '喷雾泵泵站厂家(外键,指向tsupplier.ID)',
  1565. `spraypumpmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '喷雾泵泵站型号',
  1566. `spraypumpnum` double NULL DEFAULT NULL COMMENT '喷雾泵泵站数量',
  1567. `watertanknum` double NULL DEFAULT NULL COMMENT '水箱-数量',
  1568. `watertankvolume` double NULL DEFAULT NULL COMMENT '水箱-容量',
  1569. `mixturetanknum` double NULL DEFAULT NULL COMMENT '混合液箱-数量',
  1570. `mixturetankvolume` double NULL DEFAULT NULL COMMENT '混合液箱-容量',
  1571. `returntanknum` double NULL DEFAULT NULL COMMENT '回液箱-数量',
  1572. `returntankvolume` double NULL DEFAULT NULL COMMENT '回液箱-容量',
  1573. `mmassupplier` int(11) NULL DEFAULT NULL COMMENT '综采自动化系统-厂家(外键,指向tsupplier.ID)',
  1574. `mmasvideo` int(11) NULL DEFAULT NULL COMMENT '综采自动化系统视频(有/无)(0: 无, 1: 有)',
  1575. `mmasremocont` int(11) NULL DEFAULT NULL COMMENT '综采自动化系统远控(有/无)(0: 无, 1: 有)',
  1576. `minesupplierid` int(11) NULL DEFAULT NULL COMMENT '采煤机厂家(外键,指向tsupplier.ID)_',
  1577. `minemodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '采煤机型号',
  1578. `scrapersupplierid` int(11) NULL DEFAULT NULL COMMENT '刮板运输机厂家(外键,指向tsupplier.ID)',
  1579. `scrapermodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '刮板运输机型号',
  1580. `beltsupplierid` int(11) NULL DEFAULT NULL COMMENT '皮带运输机-厂家(外键,指向tsupplier.ID)',
  1581. `beltmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '皮带运输机-型号',
  1582. `threecontsupplierid` int(11) NULL DEFAULT NULL COMMENT '三机控制-厂家(外键,指向tsupplier.ID)',
  1583. `threecontmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '三机控制-型号',
  1584. `threemonitsupplierid` int(11) NULL DEFAULT NULL COMMENT '三机监测-厂家(外键,指向tsupplier.ID)',
  1585. `threemonitmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '三机监测-型号',
  1586. `switchsupplierid` int(11) NULL DEFAULT NULL COMMENT '组合开关-厂家(外键,指向tsupplier.ID)',
  1587. `switchmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '组合开关-型号',
  1588. `voicecommsupplierid` int(11) NULL DEFAULT NULL COMMENT '工作面语音通信-厂家(外键,指向tsupplier.ID)',
  1589. `voicecommmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作面语音通信-型号',
  1590. `supportnum` double NULL DEFAULT NULL COMMENT '配套支架总架数',
  1591. `invertersupplierid` int(11) NULL DEFAULT NULL COMMENT '变频器-厂家(外键,指向tsupplier.ID)',
  1592. `invertermodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '变频器-型号',
  1593. `isdel` int(11) NULL DEFAULT NULL,
  1594. `isdisable` int(11) NULL DEFAULT NULL,
  1595. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  1596. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  1597. `totalauxnum` decimal(20, 2) NULL DEFAULT NULL COMMENT '总的支架数量',
  1598. `totalvalvefunctionnum` decimal(20, 2) NULL DEFAULT NULL COMMENT '总的支架主阀-功能数',
  1599. `projectid` int(11) NULL DEFAULT NULL,
  1600. `otheremployeename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目其他负责人(外键,多选,指向temployee.ID)',
  1601. `emulsifyoil` int(11) NULL DEFAULT NULL COMMENT '乳化油厂家',
  1602. `servicearea` int(11) NULL DEFAULT NULL COMMENT '区域',
  1603. `workplane` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前使用工作面',
  1604. `qastate` int(11) NULL DEFAULT NULL COMMENT '质保状态',
  1605. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1606. `wbsid` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbsid',
  1607. `oldgroup` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '曾用名',
  1608. `watersupplier` int(11) NULL DEFAULT NULL COMMENT '水处理装置_厂家',
  1609. `watermodel` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '水处理装置_型号',
  1610. `supporttype` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '中间架支架型号',
  1611. `nowarranty` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1612. PRIMARY KEY (`ID`) USING BTREE
  1613. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  1614. -- ----------------------------
  1615. -- Table structure for tproject_copy
  1616. -- ----------------------------
  1617. DROP TABLE IF EXISTS `tproject_copy`;
  1618. CREATE TABLE `tproject_copy` (
  1619. `ID` int(11) NOT NULL COMMENT '主键',
  1620. `shortname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目简称',
  1621. PRIMARY KEY (`ID`) USING BTREE
  1622. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  1623. -- ----------------------------
  1624. -- Table structure for tproject_copy1
  1625. -- ----------------------------
  1626. DROP TABLE IF EXISTS `tproject_copy1`;
  1627. CREATE TABLE `tproject_copy1` (
  1628. `ID` int(11) NOT NULL COMMENT '主键',
  1629. `shortname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目简称',
  1630. `groupid` int(11) NULL DEFAULT NULL COMMENT '所属集团',
  1631. `coal` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '使用煤矿',
  1632. `provinceid` int(11) NULL DEFAULT NULL COMMENT '省(外键,指向tarea.ID)',
  1633. `cityid` int(11) NULL DEFAULT NULL COMMENT '市(外键,指向tarea.ID)',
  1634. `countyid` int(11) NULL DEFAULT NULL COMMENT '县(外键,指向tarea.ID)',
  1635. `address` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '详细地址',
  1636. `typeid` int(11) NULL DEFAULT NULL COMMENT '项目类型(外键,指向tprojecttype.ID)',
  1637. `matchnum` int(11) NULL DEFAULT NULL COMMENT '配套套数',
  1638. `repairsate` int(11) NULL DEFAULT NULL COMMENT '项目维修状况(外键,指向trepairstate.ID)',
  1639. `runstate` int(11) NULL DEFAULT NULL COMMENT '项目运行状态(外键,指向trunstate.ID)',
  1640. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键,指向tsalecenter.ID)',
  1641. `majoremployeeid` int(11) NULL DEFAULT NULL COMMENT '项目主要负责人(外键,指向temployee.ID)',
  1642. `otheremployee` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目其他负责人(外键,多选,指向temployee.ID)',
  1643. `name` int(11) NULL DEFAULT NULL COMMENT '关联ERP项目',
  1644. `code` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联ERP编号',
  1645. `arrivedate` datetime NULL DEFAULT NULL COMMENT '设备到货时间',
  1646. `installdate` datetime NULL DEFAULT NULL COMMENT '井下安装时间',
  1647. `productdate` datetime NULL DEFAULT NULL COMMENT '开始生产时间',
  1648. `warrantystart` datetime NULL DEFAULT NULL COMMENT '质保期-起始',
  1649. `warranty` int(11) NULL DEFAULT NULL COMMENT '质保期',
  1650. `warrantyend` datetime NULL DEFAULT NULL COMMENT '质保期-结束',
  1651. `parentproject` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '前置项目(多选外键,指向tproject.ID)',
  1652. `starttime` datetime NULL DEFAULT NULL COMMENT '工作面使用起始时间',
  1653. `endtime` datetime NULL DEFAULT NULL COMMENT '工作面使用结束时间',
  1654. `coalname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作面使用煤矿',
  1655. `facename` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '使用煤矿',
  1656. `auxiliaryvalvesuppid` int(11) NULL DEFAULT NULL COMMENT '支架辅助阀-厂家(外键,指向tsupplier.ID)',
  1657. `onewayvalvemodel` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支架立柱液控单向阀-型号',
  1658. `suppfiltsupplierid` int(11) NULL DEFAULT NULL COMMENT '支架过滤器厂家(外键,指向tsupplier.ID)',
  1659. `suppfiltmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支架过滤器型号',
  1660. `suppfilttype` int(11) NULL DEFAULT NULL COMMENT '支架过滤器类型',
  1661. `highpresupplierid` int(11) NULL DEFAULT NULL COMMENT '高压过滤站厂家(外键,指向tsupplier.ID)',
  1662. `highpremodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '高压过滤站型号',
  1663. `highpretype` int(11) NULL DEFAULT NULL COMMENT '高压过滤站类型',
  1664. `suppcontsupplierid` int(11) NULL DEFAULT NULL COMMENT '支架电控系统-厂家(外键,指向tsupplier.ID)',
  1665. `suppcontmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支架控制器-型号',
  1666. `posdetectype` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '采煤机位置检测装置类型',
  1667. `upload` int(11) NULL DEFAULT NULL COMMENT '数据上传(有/无)(0:无,1:有)',
  1668. `machinerytrack` int(11) NULL DEFAULT NULL COMMENT '跟机自动化(有/无)(0:无,1:有)',
  1669. `liquidsuppsupplierid` int(11) NULL DEFAULT NULL COMMENT '集成供液系统-厂家(外键,指向tsupplier.ID)',
  1670. `liquidsuppmodel` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集成供液系统-型号',
  1671. `plc` int(11) NULL DEFAULT NULL COMMENT '集成供液系统-PLC信息(0: 无,1: 有)',
  1672. `varyfrequency` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集成供液系统-变频信息',
  1673. `emulsionpumpsupplierid` int(11) NULL DEFAULT NULL COMMENT '乳化液泵站厂家(外键,指向tsupplier.ID)',
  1674. `emulsionpumpmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '乳化液泵站型号',
  1675. `emulsionpumpnum` double NULL DEFAULT NULL COMMENT '乳化液泵站数量',
  1676. `spraypumpsupplierid` int(11) NULL DEFAULT NULL COMMENT '喷雾泵泵站厂家(外键,指向tsupplier.ID)',
  1677. `spraypumpmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '喷雾泵泵站型号',
  1678. `spraypumpnum` double NULL DEFAULT NULL COMMENT '喷雾泵泵站数量',
  1679. `watertanknum` double NULL DEFAULT NULL COMMENT '水箱-数量',
  1680. `watertankvolume` double NULL DEFAULT NULL COMMENT '水箱-容量',
  1681. `mixturetanknum` double NULL DEFAULT NULL COMMENT '混合液箱-数量',
  1682. `mixturetankvolume` double NULL DEFAULT NULL COMMENT '混合液箱-容量',
  1683. `returntanknum` double NULL DEFAULT NULL COMMENT '回液箱-数量',
  1684. `returntankvolume` double NULL DEFAULT NULL COMMENT '回液箱-容量',
  1685. `mmassupplier` int(11) NULL DEFAULT NULL COMMENT '综采自动化系统-厂家(外键,指向tsupplier.ID)',
  1686. `mmasvideo` int(11) NULL DEFAULT NULL COMMENT '综采自动化系统视频(有/无)(0: 无, 1: 有)',
  1687. `mmasremocont` int(11) NULL DEFAULT NULL COMMENT '综采自动化系统远控(有/无)(0: 无, 1: 有)',
  1688. `minesupplierid` int(11) NULL DEFAULT NULL COMMENT '采煤机厂家(外键,指向tsupplier.ID)_',
  1689. `minemodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '采煤机型号',
  1690. `scrapersupplierid` int(11) NULL DEFAULT NULL COMMENT '刮板运输机厂家(外键,指向tsupplier.ID)',
  1691. `scrapermodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '刮板运输机型号',
  1692. `beltsupplierid` int(11) NULL DEFAULT NULL COMMENT '皮带运输机-厂家(外键,指向tsupplier.ID)',
  1693. `beltmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '皮带运输机-型号',
  1694. `threecontsupplierid` int(11) NULL DEFAULT NULL COMMENT '三机控制-厂家(外键,指向tsupplier.ID)',
  1695. `threecontmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '三机控制-型号',
  1696. `threemonitsupplierid` int(11) NULL DEFAULT NULL COMMENT '三机监测-厂家(外键,指向tsupplier.ID)',
  1697. `threemonitmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '三机监测-型号',
  1698. `switchsupplierid` int(11) NULL DEFAULT NULL COMMENT '组合开关-厂家(外键,指向tsupplier.ID)',
  1699. `switchmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '组合开关-型号',
  1700. `voicecommsupplierid` int(11) NULL DEFAULT NULL COMMENT '工作面语音通信-厂家(外键,指向tsupplier.ID)',
  1701. `voicecommmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作面语音通信-型号',
  1702. `supportnum` double NULL DEFAULT NULL COMMENT '配套支架总架数',
  1703. `invertersupplierid` int(11) NULL DEFAULT NULL COMMENT '变频器-厂家(外键,指向tsupplier.ID)',
  1704. `invertermodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '变频器-型号',
  1705. `isdel` int(11) NULL DEFAULT NULL,
  1706. `isdisable` int(11) NULL DEFAULT NULL,
  1707. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  1708. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  1709. `totalauxnum` decimal(20, 2) NULL DEFAULT NULL COMMENT '总的支架数量',
  1710. `totalvalvefunctionnum` decimal(20, 2) NULL DEFAULT NULL COMMENT '总的支架主阀-功能数',
  1711. `projectid` int(11) NULL DEFAULT NULL,
  1712. `otheremployeename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目其他负责人(外键,多选,指向temployee.ID)',
  1713. `emulsifyoil` int(11) NULL DEFAULT NULL COMMENT '乳化油厂家',
  1714. `servicearea` int(11) NULL DEFAULT NULL COMMENT '区域',
  1715. `workplane` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前使用工作面',
  1716. `qastate` int(11) NULL DEFAULT NULL COMMENT '质保状态',
  1717. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1718. `wbsid` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbsid',
  1719. `oldgroup` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '曾用名',
  1720. `watersupplier` int(11) NULL DEFAULT NULL COMMENT '水处理装置_厂家',
  1721. `watermodel` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '水处理装置_型号',
  1722. `supporttype` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '中间架支架型号',
  1723. PRIMARY KEY (`ID`) USING BTREE
  1724. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  1725. -- ----------------------------
  1726. -- Table structure for tproject_copy2
  1727. -- ----------------------------
  1728. DROP TABLE IF EXISTS `tproject_copy2`;
  1729. CREATE TABLE `tproject_copy2` (
  1730. `ID` int(11) NOT NULL COMMENT '主键',
  1731. `shortname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目简称',
  1732. `groupid` int(11) NULL DEFAULT NULL COMMENT '所属集团',
  1733. `coal` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '使用煤矿',
  1734. `provinceid` int(11) NULL DEFAULT NULL COMMENT '省(外键,指向tarea.ID)',
  1735. `cityid` int(11) NULL DEFAULT NULL COMMENT '市(外键,指向tarea.ID)',
  1736. `countyid` int(11) NULL DEFAULT NULL COMMENT '县(外键,指向tarea.ID)',
  1737. `address` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '详细地址',
  1738. `typeid` int(11) NULL DEFAULT NULL COMMENT '项目类型(外键,指向tprojecttype.ID)',
  1739. `matchnum` int(11) NULL DEFAULT NULL COMMENT '配套套数',
  1740. `repairsate` int(11) NULL DEFAULT NULL COMMENT '项目维修状况(外键,指向trepairstate.ID)',
  1741. `runstate` int(11) NULL DEFAULT NULL COMMENT '项目运行状态(外键,指向trunstate.ID)',
  1742. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键,指向tsalecenter.ID)',
  1743. `majoremployeeid` int(11) NULL DEFAULT NULL COMMENT '项目主要负责人(外键,指向temployee.ID)',
  1744. `otheremployee` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目其他负责人(外键,多选,指向temployee.ID)',
  1745. `name` int(11) NULL DEFAULT NULL COMMENT '关联ERP项目',
  1746. `code` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联ERP编号',
  1747. `arrivedate` datetime NULL DEFAULT NULL COMMENT '设备到货时间',
  1748. `installdate` datetime NULL DEFAULT NULL COMMENT '井下安装时间',
  1749. `productdate` datetime NULL DEFAULT NULL COMMENT '开始生产时间',
  1750. `warrantystart` datetime NULL DEFAULT NULL COMMENT '质保期-起始',
  1751. `warranty` int(11) NULL DEFAULT NULL COMMENT '质保期',
  1752. `warrantyend` datetime NULL DEFAULT NULL COMMENT '质保期-结束',
  1753. `parentproject` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '前置项目(多选外键,指向tproject.ID)',
  1754. `starttime` datetime NULL DEFAULT NULL COMMENT '工作面使用起始时间',
  1755. `endtime` datetime NULL DEFAULT NULL COMMENT '工作面使用结束时间',
  1756. `coalname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作面使用煤矿',
  1757. `facename` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '使用煤矿',
  1758. `auxiliaryvalvesuppid` int(11) NULL DEFAULT NULL COMMENT '支架辅助阀-厂家(外键,指向tsupplier.ID)',
  1759. `onewayvalvemodel` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支架立柱液控单向阀-型号',
  1760. `suppfiltsupplierid` int(11) NULL DEFAULT NULL COMMENT '支架过滤器厂家(外键,指向tsupplier.ID)',
  1761. `suppfiltmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支架过滤器型号',
  1762. `suppfilttype` int(11) NULL DEFAULT NULL COMMENT '支架过滤器类型',
  1763. `highpresupplierid` int(11) NULL DEFAULT NULL COMMENT '高压过滤站厂家(外键,指向tsupplier.ID)',
  1764. `highpremodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '高压过滤站型号',
  1765. `highpretype` int(11) NULL DEFAULT NULL COMMENT '高压过滤站类型',
  1766. `suppcontsupplierid` int(11) NULL DEFAULT NULL COMMENT '支架电控系统-厂家(外键,指向tsupplier.ID)',
  1767. `suppcontmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支架控制器-型号',
  1768. `posdetectype` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '采煤机位置检测装置类型',
  1769. `upload` int(11) NULL DEFAULT NULL COMMENT '数据上传(有/无)(0:无,1:有)',
  1770. `machinerytrack` int(11) NULL DEFAULT NULL COMMENT '跟机自动化(有/无)(0:无,1:有)',
  1771. `liquidsuppsupplierid` int(11) NULL DEFAULT NULL COMMENT '集成供液系统-厂家(外键,指向tsupplier.ID)',
  1772. `liquidsuppmodel` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集成供液系统-型号',
  1773. `plc` int(11) NULL DEFAULT NULL COMMENT '集成供液系统-PLC信息(0: 无,1: 有)',
  1774. `varyfrequency` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集成供液系统-变频信息',
  1775. `emulsionpumpsupplierid` int(11) NULL DEFAULT NULL COMMENT '乳化液泵站厂家(外键,指向tsupplier.ID)',
  1776. `emulsionpumpmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '乳化液泵站型号',
  1777. `emulsionpumpnum` double NULL DEFAULT NULL COMMENT '乳化液泵站数量',
  1778. `spraypumpsupplierid` int(11) NULL DEFAULT NULL COMMENT '喷雾泵泵站厂家(外键,指向tsupplier.ID)',
  1779. `spraypumpmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '喷雾泵泵站型号',
  1780. `spraypumpnum` double NULL DEFAULT NULL COMMENT '喷雾泵泵站数量',
  1781. `watertanknum` double NULL DEFAULT NULL COMMENT '水箱-数量',
  1782. `watertankvolume` double NULL DEFAULT NULL COMMENT '水箱-容量',
  1783. `mixturetanknum` double NULL DEFAULT NULL COMMENT '混合液箱-数量',
  1784. `mixturetankvolume` double NULL DEFAULT NULL COMMENT '混合液箱-容量',
  1785. `returntanknum` double NULL DEFAULT NULL COMMENT '回液箱-数量',
  1786. `returntankvolume` double NULL DEFAULT NULL COMMENT '回液箱-容量',
  1787. `mmassupplier` int(11) NULL DEFAULT NULL COMMENT '综采自动化系统-厂家(外键,指向tsupplier.ID)',
  1788. `mmasvideo` int(11) NULL DEFAULT NULL COMMENT '综采自动化系统视频(有/无)(0: 无, 1: 有)',
  1789. `mmasremocont` int(11) NULL DEFAULT NULL COMMENT '综采自动化系统远控(有/无)(0: 无, 1: 有)',
  1790. `minesupplierid` int(11) NULL DEFAULT NULL COMMENT '采煤机厂家(外键,指向tsupplier.ID)_',
  1791. `minemodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '采煤机型号',
  1792. `scrapersupplierid` int(11) NULL DEFAULT NULL COMMENT '刮板运输机厂家(外键,指向tsupplier.ID)',
  1793. `scrapermodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '刮板运输机型号',
  1794. `beltsupplierid` int(11) NULL DEFAULT NULL COMMENT '皮带运输机-厂家(外键,指向tsupplier.ID)',
  1795. `beltmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '皮带运输机-型号',
  1796. `threecontsupplierid` int(11) NULL DEFAULT NULL COMMENT '三机控制-厂家(外键,指向tsupplier.ID)',
  1797. `threecontmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '三机控制-型号',
  1798. `threemonitsupplierid` int(11) NULL DEFAULT NULL COMMENT '三机监测-厂家(外键,指向tsupplier.ID)',
  1799. `threemonitmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '三机监测-型号',
  1800. `switchsupplierid` int(11) NULL DEFAULT NULL COMMENT '组合开关-厂家(外键,指向tsupplier.ID)',
  1801. `switchmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '组合开关-型号',
  1802. `voicecommsupplierid` int(11) NULL DEFAULT NULL COMMENT '工作面语音通信-厂家(外键,指向tsupplier.ID)',
  1803. `voicecommmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作面语音通信-型号',
  1804. `supportnum` double NULL DEFAULT NULL COMMENT '配套支架总架数',
  1805. `invertersupplierid` int(11) NULL DEFAULT NULL COMMENT '变频器-厂家(外键,指向tsupplier.ID)',
  1806. `invertermodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '变频器-型号',
  1807. `isdel` int(11) NULL DEFAULT NULL,
  1808. `isdisable` int(11) NULL DEFAULT NULL,
  1809. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  1810. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  1811. `totalauxnum` decimal(20, 2) NULL DEFAULT NULL COMMENT '总的支架数量',
  1812. `totalvalvefunctionnum` decimal(20, 2) NULL DEFAULT NULL COMMENT '总的支架主阀-功能数',
  1813. `projectid` int(11) NULL DEFAULT NULL,
  1814. `otheremployeename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目其他负责人(外键,多选,指向temployee.ID)',
  1815. `emulsifyoil` int(11) NULL DEFAULT NULL COMMENT '乳化油厂家',
  1816. `servicearea` int(11) NULL DEFAULT NULL COMMENT '区域',
  1817. `workplane` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前使用工作面',
  1818. `qastate` int(11) NULL DEFAULT NULL COMMENT '质保状态',
  1819. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1820. `wbsid` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbsid',
  1821. `oldgroup` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '曾用名',
  1822. `watersupplier` int(11) NULL DEFAULT NULL COMMENT '水处理装置_厂家',
  1823. `watermodel` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '水处理装置_型号',
  1824. `supporttype` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '中间架支架型号',
  1825. PRIMARY KEY (`ID`) USING BTREE
  1826. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  1827. -- ----------------------------
  1828. -- Table structure for tproject_copy3
  1829. -- ----------------------------
  1830. DROP TABLE IF EXISTS `tproject_copy3`;
  1831. CREATE TABLE `tproject_copy3` (
  1832. `ID` int(11) NOT NULL COMMENT '主键',
  1833. `shortname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目简称',
  1834. `groupid` int(11) NULL DEFAULT NULL COMMENT '所属集团',
  1835. `coal` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '使用煤矿',
  1836. `provinceid` int(11) NULL DEFAULT NULL COMMENT '省(外键,指向tarea.ID)',
  1837. `cityid` int(11) NULL DEFAULT NULL COMMENT '市(外键,指向tarea.ID)',
  1838. `countyid` int(11) NULL DEFAULT NULL COMMENT '县(外键,指向tarea.ID)',
  1839. `address` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '详细地址',
  1840. `typeid` int(11) NULL DEFAULT NULL COMMENT '项目类型(外键,指向tprojecttype.ID)',
  1841. `matchnum` int(11) NULL DEFAULT NULL COMMENT '配套套数',
  1842. `repairsate` int(11) NULL DEFAULT NULL COMMENT '项目维修状况(外键,指向trepairstate.ID)',
  1843. `runstate` int(11) NULL DEFAULT NULL COMMENT '项目运行状态(外键,指向trunstate.ID)',
  1844. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键,指向tsalecenter.ID)',
  1845. `majoremployeeid` int(11) NULL DEFAULT NULL COMMENT '项目主要负责人(外键,指向temployee.ID)',
  1846. `otheremployee` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目其他负责人(外键,多选,指向temployee.ID)',
  1847. `name` int(11) NULL DEFAULT NULL COMMENT '关联ERP项目',
  1848. `code` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联ERP编号',
  1849. `arrivedate` datetime NULL DEFAULT NULL COMMENT '设备到货时间',
  1850. `installdate` datetime NULL DEFAULT NULL COMMENT '井下安装时间',
  1851. `productdate` datetime NULL DEFAULT NULL COMMENT '开始生产时间',
  1852. `warrantystart` datetime NULL DEFAULT NULL COMMENT '质保期-起始',
  1853. `warranty` int(11) NULL DEFAULT NULL COMMENT '质保期',
  1854. `warrantyend` datetime NULL DEFAULT NULL COMMENT '质保期-结束',
  1855. `parentproject` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '前置项目(多选外键,指向tproject.ID)',
  1856. `starttime` datetime NULL DEFAULT NULL COMMENT '工作面使用起始时间',
  1857. `endtime` datetime NULL DEFAULT NULL COMMENT '工作面使用结束时间',
  1858. `coalname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作面使用煤矿',
  1859. `facename` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '使用煤矿',
  1860. `auxiliaryvalvesuppid` int(11) NULL DEFAULT NULL COMMENT '支架辅助阀-厂家(外键,指向tsupplier.ID)',
  1861. `onewayvalvemodel` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支架立柱液控单向阀-型号',
  1862. `suppfiltsupplierid` int(11) NULL DEFAULT NULL COMMENT '支架过滤器厂家(外键,指向tsupplier.ID)',
  1863. `suppfiltmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支架过滤器型号',
  1864. `suppfilttype` int(11) NULL DEFAULT NULL COMMENT '支架过滤器类型',
  1865. `highpresupplierid` int(11) NULL DEFAULT NULL COMMENT '高压过滤站厂家(外键,指向tsupplier.ID)',
  1866. `highpremodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '高压过滤站型号',
  1867. `highpretype` int(11) NULL DEFAULT NULL COMMENT '高压过滤站类型',
  1868. `suppcontsupplierid` int(11) NULL DEFAULT NULL COMMENT '支架电控系统-厂家(外键,指向tsupplier.ID)',
  1869. `suppcontmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支架控制器-型号',
  1870. `posdetectype` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '采煤机位置检测装置类型',
  1871. `upload` int(11) NULL DEFAULT NULL COMMENT '数据上传(有/无)(0:无,1:有)',
  1872. `machinerytrack` int(11) NULL DEFAULT NULL COMMENT '跟机自动化(有/无)(0:无,1:有)',
  1873. `liquidsuppsupplierid` int(11) NULL DEFAULT NULL COMMENT '集成供液系统-厂家(外键,指向tsupplier.ID)',
  1874. `liquidsuppmodel` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集成供液系统-型号',
  1875. `plc` int(11) NULL DEFAULT NULL COMMENT '集成供液系统-PLC信息(0: 无,1: 有)',
  1876. `varyfrequency` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集成供液系统-变频信息',
  1877. `emulsionpumpsupplierid` int(11) NULL DEFAULT NULL COMMENT '乳化液泵站厂家(外键,指向tsupplier.ID)',
  1878. `emulsionpumpmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '乳化液泵站型号',
  1879. `emulsionpumpnum` double NULL DEFAULT NULL COMMENT '乳化液泵站数量',
  1880. `spraypumpsupplierid` int(11) NULL DEFAULT NULL COMMENT '喷雾泵泵站厂家(外键,指向tsupplier.ID)',
  1881. `spraypumpmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '喷雾泵泵站型号',
  1882. `spraypumpnum` double NULL DEFAULT NULL COMMENT '喷雾泵泵站数量',
  1883. `watertanknum` double NULL DEFAULT NULL COMMENT '水箱-数量',
  1884. `watertankvolume` double NULL DEFAULT NULL COMMENT '水箱-容量',
  1885. `mixturetanknum` double NULL DEFAULT NULL COMMENT '混合液箱-数量',
  1886. `mixturetankvolume` double NULL DEFAULT NULL COMMENT '混合液箱-容量',
  1887. `returntanknum` double NULL DEFAULT NULL COMMENT '回液箱-数量',
  1888. `returntankvolume` double NULL DEFAULT NULL COMMENT '回液箱-容量',
  1889. `mmassupplier` int(11) NULL DEFAULT NULL COMMENT '综采自动化系统-厂家(外键,指向tsupplier.ID)',
  1890. `mmasvideo` int(11) NULL DEFAULT NULL COMMENT '综采自动化系统视频(有/无)(0: 无, 1: 有)',
  1891. `mmasremocont` int(11) NULL DEFAULT NULL COMMENT '综采自动化系统远控(有/无)(0: 无, 1: 有)',
  1892. `minesupplierid` int(11) NULL DEFAULT NULL COMMENT '采煤机厂家(外键,指向tsupplier.ID)_',
  1893. `minemodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '采煤机型号',
  1894. `scrapersupplierid` int(11) NULL DEFAULT NULL COMMENT '刮板运输机厂家(外键,指向tsupplier.ID)',
  1895. `scrapermodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '刮板运输机型号',
  1896. `beltsupplierid` int(11) NULL DEFAULT NULL COMMENT '皮带运输机-厂家(外键,指向tsupplier.ID)',
  1897. `beltmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '皮带运输机-型号',
  1898. `threecontsupplierid` int(11) NULL DEFAULT NULL COMMENT '三机控制-厂家(外键,指向tsupplier.ID)',
  1899. `threecontmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '三机控制-型号',
  1900. `threemonitsupplierid` int(11) NULL DEFAULT NULL COMMENT '三机监测-厂家(外键,指向tsupplier.ID)',
  1901. `threemonitmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '三机监测-型号',
  1902. `switchsupplierid` int(11) NULL DEFAULT NULL COMMENT '组合开关-厂家(外键,指向tsupplier.ID)',
  1903. `switchmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '组合开关-型号',
  1904. `voicecommsupplierid` int(11) NULL DEFAULT NULL COMMENT '工作面语音通信-厂家(外键,指向tsupplier.ID)',
  1905. `voicecommmodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作面语音通信-型号',
  1906. `supportnum` double NULL DEFAULT NULL COMMENT '配套支架总架数',
  1907. `invertersupplierid` int(11) NULL DEFAULT NULL COMMENT '变频器-厂家(外键,指向tsupplier.ID)',
  1908. `invertermodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '变频器-型号',
  1909. `isdel` int(11) NULL DEFAULT NULL,
  1910. `isdisable` int(11) NULL DEFAULT NULL,
  1911. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  1912. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  1913. `totalauxnum` decimal(20, 2) NULL DEFAULT NULL COMMENT '总的支架数量',
  1914. `totalvalvefunctionnum` decimal(20, 2) NULL DEFAULT NULL COMMENT '总的支架主阀-功能数',
  1915. `projectid` int(11) NULL DEFAULT NULL,
  1916. `otheremployeename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目其他负责人(外键,多选,指向temployee.ID)',
  1917. `emulsifyoil` int(11) NULL DEFAULT NULL COMMENT '乳化油厂家',
  1918. `servicearea` int(11) NULL DEFAULT NULL COMMENT '区域',
  1919. `workplane` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前使用工作面',
  1920. `qastate` int(11) NULL DEFAULT NULL COMMENT '质保状态',
  1921. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1922. `wbsid` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'wbsid',
  1923. `oldgroup` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '曾用名',
  1924. `watersupplier` int(11) NULL DEFAULT NULL COMMENT '水处理装置_厂家',
  1925. `watermodel` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '水处理装置_型号',
  1926. `supporttype` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '中间架支架型号',
  1927. `nowarranty` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1928. PRIMARY KEY (`ID`) USING BTREE
  1929. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  1930. -- ----------------------------
  1931. -- Table structure for tproject_face
  1932. -- ----------------------------
  1933. DROP TABLE IF EXISTS `tproject_face`;
  1934. CREATE TABLE `tproject_face` (
  1935. `ID` int(11) NOT NULL,
  1936. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  1937. `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作面名称',
  1938. `length` double NULL DEFAULT NULL COMMENT '工作面走向长度',
  1939. `aveheight` double NULL DEFAULT NULL COMMENT '工作面平均采高',
  1940. `incangle` double NULL DEFAULT NULL COMMENT '工作面倾斜角度',
  1941. `inclength` double NULL DEFAULT NULL COMMENT '工作面倾斜长度',
  1942. `roof` int(11) NULL DEFAULT NULL COMMENT '顶板条件',
  1943. `topcoal` int(11) NULL DEFAULT NULL COMMENT '放顶煤(是/否)(0:否,1:是)',
  1944. `gas` int(11) NULL DEFAULT NULL COMMENT '瓦斯含量(高/低)(0:低,1:高)',
  1945. `avedaioutput` double NULL DEFAULT NULL COMMENT '平均日产(万吨)',
  1946. `maxdaioutput` double NULL DEFAULT NULL COMMENT '最高日产(万吨)',
  1947. `avemonoutput` double NULL DEFAULT NULL COMMENT '平均月产(万吨)',
  1948. `maxmonoutput` double NULL DEFAULT NULL COMMENT '最高月产(万吨)',
  1949. `faceoutput` double NULL DEFAULT NULL COMMENT '总产量(万吨)',
  1950. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  1951. `isdel` int(11) NULL DEFAULT NULL,
  1952. `starttime` datetime NULL DEFAULT NULL COMMENT '工作面使用起始时间',
  1953. `endtime` datetime NULL DEFAULT NULL COMMENT '工作面使用结束时间',
  1954. `coalname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作面使用煤矿',
  1955. `projectstateid` int(11) NULL DEFAULT NULL COMMENT '项目运行状态id,指向tprojectstate.id',
  1956. PRIMARY KEY (`ID`) USING BTREE
  1957. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工作面使用情况' ROW_FORMAT = Dynamic;
  1958. -- ----------------------------
  1959. -- Table structure for tproject_otheremployee
  1960. -- ----------------------------
  1961. DROP TABLE IF EXISTS `tproject_otheremployee`;
  1962. CREATE TABLE `tproject_otheremployee` (
  1963. `ID` int(11) NOT NULL COMMENT '主键',
  1964. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  1965. `otheremployeeid` int(11) NULL DEFAULT NULL COMMENT '其他项目负责人id(外键,指向temployee.ID)',
  1966. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  1967. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  1968. PRIMARY KEY (`ID`) USING BTREE
  1969. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  1970. -- ----------------------------
  1971. -- Table structure for tproject_parent
  1972. -- ----------------------------
  1973. DROP TABLE IF EXISTS `tproject_parent`;
  1974. CREATE TABLE `tproject_parent` (
  1975. `ID` int(11) NOT NULL,
  1976. `projectid` int(11) NULL DEFAULT NULL COMMENT '主表ID',
  1977. `projectname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1978. `isdel` int(11) NULL DEFAULT NULL,
  1979. `createtime` datetime NULL DEFAULT NULL,
  1980. `preprojectid` int(11) NULL DEFAULT NULL COMMENT '前置项目ID ',
  1981. `remark` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL
  1982. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  1983. -- ----------------------------
  1984. -- Table structure for tproject_province
  1985. -- ----------------------------
  1986. DROP TABLE IF EXISTS `tproject_province`;
  1987. CREATE TABLE `tproject_province` (
  1988. `id` smallint(6) NOT NULL,
  1989. `name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1990. `PID` smallint(6) NULL DEFAULT NULL,
  1991. `type` smallint(6) NULL DEFAULT NULL,
  1992. `initial` char(3) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1993. `initials` char(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1994. `pinyin` varchar(90) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1995. `extra` varchar(45) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1996. `suffix` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1997. `code` char(21) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1998. `area_code` char(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  1999. `order` tinyint(4) NULL DEFAULT NULL,
  2000. `isdisable` smallint(6) NULL DEFAULT NULL,
  2001. `isdel` smallint(6) NULL DEFAULT NULL,
  2002. PRIMARY KEY (`id`) USING BTREE
  2003. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  2004. -- ----------------------------
  2005. -- Table structure for tproject_support
  2006. -- ----------------------------
  2007. DROP TABLE IF EXISTS `tproject_support`;
  2008. CREATE TABLE `tproject_support` (
  2009. `ID` int(11) NOT NULL,
  2010. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  2011. `supplierid` int(11) NULL DEFAULT NULL COMMENT '供货厂家(外键,指向tsupplier.ID)',
  2012. `typeid` int(11) NULL DEFAULT NULL COMMENT '支架类型(外键,指向tsupport_type.ID)',
  2013. `model` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '型号',
  2014. `num` float NULL DEFAULT NULL COMMENT '数量',
  2015. `mainvalvesupp` int(11) NULL DEFAULT NULL COMMENT '主阀厂家',
  2016. `mainvalvemodel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '主阀型号',
  2017. `mainvalvefuncnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '主阀功能数',
  2018. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2019. `createtime` datetime NULL DEFAULT NULL COMMENT '创建日期',
  2020. `projectstateid` int(11) NULL DEFAULT NULL COMMENT '项目运行状态id,指向tprojectstate.id',
  2021. PRIMARY KEY (`ID`) USING BTREE
  2022. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '配套支架明细' ROW_FORMAT = Dynamic;
  2023. -- ----------------------------
  2024. -- Table structure for tprojectstate
  2025. -- ----------------------------
  2026. DROP TABLE IF EXISTS `tprojectstate`;
  2027. CREATE TABLE `tprojectstate` (
  2028. `ID` int(11) NOT NULL,
  2029. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称',
  2030. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2031. PRIMARY KEY (`ID`) USING BTREE
  2032. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目运行状态变更' ROW_FORMAT = Dynamic;
  2033. -- ----------------------------
  2034. -- Table structure for tprojectstate_copy
  2035. -- ----------------------------
  2036. DROP TABLE IF EXISTS `tprojectstate_copy`;
  2037. CREATE TABLE `tprojectstate_copy` (
  2038. `ID` int(11) NOT NULL,
  2039. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称',
  2040. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2041. PRIMARY KEY (`ID`) USING BTREE
  2042. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目运行状态变更' ROW_FORMAT = Dynamic;
  2043. -- ----------------------------
  2044. -- Table structure for tprojectstate_detail
  2045. -- ----------------------------
  2046. DROP TABLE IF EXISTS `tprojectstate_detail`;
  2047. CREATE TABLE `tprojectstate_detail` (
  2048. `ID` int(11) NOT NULL,
  2049. `projectstateid` int(11) NULL DEFAULT NULL COMMENT '运行状态变更 外键,指向tprojectstate.ID',
  2050. `happendate` datetime NULL DEFAULT NULL COMMENT '发生时间',
  2051. `runstate` int(11) NULL DEFAULT NULL COMMENT '运行状态 外键,指向trunstate.ID',
  2052. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2053. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  2054. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人',
  2055. `createmanname` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人姓名',
  2056. PRIMARY KEY (`ID`) USING BTREE
  2057. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目运行状态变更明细' ROW_FORMAT = Dynamic;
  2058. -- ----------------------------
  2059. -- Table structure for tprojectstate_detail_copy
  2060. -- ----------------------------
  2061. DROP TABLE IF EXISTS `tprojectstate_detail_copy`;
  2062. CREATE TABLE `tprojectstate_detail_copy` (
  2063. `ID` int(11) NOT NULL,
  2064. `projectstateid` int(11) NULL DEFAULT NULL COMMENT '运行状态变更 外键,指向tprojectstate.ID',
  2065. `happendate` datetime NULL DEFAULT NULL COMMENT '发生时间',
  2066. `runstate` int(11) NULL DEFAULT NULL COMMENT '运行状态 外键,指向trunstate.ID',
  2067. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2068. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  2069. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人',
  2070. `createmanname` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人姓名',
  2071. PRIMARY KEY (`ID`) USING BTREE
  2072. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目运行状态变更明细' ROW_FORMAT = Dynamic;
  2073. -- ----------------------------
  2074. -- Table structure for tprojecttype
  2075. -- ----------------------------
  2076. DROP TABLE IF EXISTS `tprojecttype`;
  2077. CREATE TABLE `tprojecttype` (
  2078. `ID` int(11) NOT NULL,
  2079. `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型名称',
  2080. `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  2081. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2082. `createtime` datetime NULL DEFAULT NULL,
  2083. PRIMARY KEY (`ID`) USING BTREE
  2084. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目类型表' ROW_FORMAT = Dynamic;
  2085. -- ----------------------------
  2086. -- Table structure for treceive
  2087. -- ----------------------------
  2088. DROP TABLE IF EXISTS `treceive`;
  2089. CREATE TABLE `treceive` (
  2090. `ID` int(11) NOT NULL,
  2091. `date` datetime NULL DEFAULT NULL COMMENT '接货时间',
  2092. `sendaddress` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货地址',
  2093. `receiveaddress` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '接货地址',
  2094. `receiveman` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '接货人姓名',
  2095. `receivephone` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '接货人电话',
  2096. `notifierid` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '通知人(外键,多选,指向temployee.ID)',
  2097. `notifiername` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '通知人姓名',
  2098. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键,指向tsalecenter.ID)',
  2099. `money` decimal(12, 2) NULL DEFAULT NULL COMMENT '发生费用',
  2100. `iscommit` int(11) NULL DEFAULT NULL COMMENT '是否接货 (0:未接货,1:已接货)',
  2101. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2102. `createtime` datetime NULL DEFAULT NULL,
  2103. `isdel` int(11) NULL DEFAULT NULL,
  2104. `totalnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '总数量',
  2105. `totalmoney` decimal(12, 2) NULL DEFAULT NULL COMMENT '总钱数',
  2106. `totalreceiptnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '总的收货数量',
  2107. `totalwrongnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '总的错误记录',
  2108. `deliveryid` int(11) NULL DEFAULT NULL COMMENT '发货记录ID(外键,指向tsend.ID)',
  2109. PRIMARY KEY (`ID`) USING BTREE
  2110. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '接货记录' ROW_FORMAT = Dynamic;
  2111. -- ----------------------------
  2112. -- Table structure for treceive_detail
  2113. -- ----------------------------
  2114. DROP TABLE IF EXISTS `treceive_detail`;
  2115. CREATE TABLE `treceive_detail` (
  2116. `ID` int(11) NOT NULL,
  2117. `receiveid` int(11) NULL DEFAULT NULL COMMENT '接货记录ID(外键,指向treceive.ID)',
  2118. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  2119. `listono` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '装箱清单单号',
  2120. `serialno` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '序号',
  2121. `productno` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品号',
  2122. `productname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品名',
  2123. `model` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格',
  2124. `sendnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '数量',
  2125. `unit` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
  2126. `boxno` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '箱号',
  2127. `remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  2128. `attribute` int(11) NULL DEFAULT NULL COMMENT '关联属性',
  2129. `createtime` datetime NULL DEFAULT NULL,
  2130. `isdel` int(11) NULL DEFAULT NULL,
  2131. `receivenum` decimal(12, 2) NULL DEFAULT NULL COMMENT '收货数量',
  2132. `money` decimal(12, 2) NULL DEFAULT NULL COMMENT '费用总额',
  2133. `isprojectid` int(11) NULL DEFAULT NULL COMMENT '涉及项目 0:否,1:是',
  2134. `wrongnum` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '错误记录',
  2135. PRIMARY KEY (`ID`) USING BTREE
  2136. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '接货记录-明细表' ROW_FORMAT = Dynamic;
  2137. -- ----------------------------
  2138. -- Table structure for treceiveprove
  2139. -- ----------------------------
  2140. DROP TABLE IF EXISTS `treceiveprove`;
  2141. CREATE TABLE `treceiveprove` (
  2142. `ID` int(11) NOT NULL,
  2143. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  2144. `createtime` datetime NULL DEFAULT NULL,
  2145. `isdel` int(11) NULL DEFAULT NULL,
  2146. `date` datetime NULL DEFAULT NULL COMMENT '验收日期',
  2147. `address` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '验收地点',
  2148. `employeeid` int(11) NULL DEFAULT NULL COMMENT '验收人员',
  2149. `custnameid` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户姓名 (外键,指向tcustbook.ID)',
  2150. `custpost` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户职位',
  2151. `custphone` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户电话',
  2152. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2153. `cc` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '邮件抄送人',
  2154. PRIMARY KEY (`ID`) USING BTREE
  2155. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备到货验收表' ROW_FORMAT = Dynamic;
  2156. -- ----------------------------
  2157. -- Table structure for treceiveprove_attachment
  2158. -- ----------------------------
  2159. DROP TABLE IF EXISTS `treceiveprove_attachment`;
  2160. CREATE TABLE `treceiveprove_attachment` (
  2161. `ID` int(11) NOT NULL,
  2162. `receiveproveid` int(11) NULL DEFAULT NULL COMMENT '设备到货验收证明ID(外键,指向treceiveprove.ID)',
  2163. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  2164. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  2165. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2166. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  2167. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  2168. `file` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '(isdel)',
  2169. PRIMARY KEY (`ID`) USING BTREE
  2170. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备到货验收附件' ROW_FORMAT = Dynamic;
  2171. -- ----------------------------
  2172. -- Table structure for treformnotice
  2173. -- ----------------------------
  2174. DROP TABLE IF EXISTS `treformnotice`;
  2175. CREATE TABLE `treformnotice` (
  2176. `ID` int(11) NOT NULL,
  2177. `title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '整改主题',
  2178. `reformstate` tinyint(4) NULL DEFAULT NULL COMMENT '整改状态(1:已发放 2:已确认 3:已提交 4:已完成)',
  2179. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键,指向torganization.id)',
  2180. `reformheadid` int(11) NULL DEFAULT NULL COMMENT '整改负责人(外键,指向temployee.id)',
  2181. `reformmemberid` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '整改组员id(多选,外键指向temployee.id)',
  2182. `reformembername` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '整改组员名字',
  2183. `projectid` int(11) NULL DEFAULT NULL COMMENT '关联项目(外键指向tproject.id)',
  2184. `reformcontent` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '整改内容',
  2185. `reformalteradvice` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '整改意见',
  2186. `reformdeadline` datetime NULL DEFAULT NULL COMMENT '整改期限',
  2187. `cc` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '邮件抄送人',
  2188. `issueorgid` int(11) NULL DEFAULT NULL COMMENT '发放部门(外键指向torganization.id)',
  2189. `issuedate` datetime NULL DEFAULT NULL COMMENT '发放日期',
  2190. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键指向temployee.id)',
  2191. `createtime` datetime NULL DEFAULT NULL COMMENT '填报时间',
  2192. `confirmdate` datetime NULL DEFAULT NULL COMMENT '确认时间',
  2193. `confirmemployee` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '确认人员',
  2194. `reformplan` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '整改计划',
  2195. `finishdate` datetime NULL DEFAULT NULL COMMENT '完成时间',
  2196. `isoverdue` tinyint(4) NULL DEFAULT NULL COMMENT '是否逾期',
  2197. `isdel` tinyint(4) NULL DEFAULT NULL COMMENT '删除标识(0:未删除 1:已删除)'
  2198. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '整改通知单主表' ROW_FORMAT = Dynamic;
  2199. -- ----------------------------
  2200. -- Table structure for treformnotice_attach
  2201. -- ----------------------------
  2202. DROP TABLE IF EXISTS `treformnotice_attach`;
  2203. CREATE TABLE `treformnotice_attach` (
  2204. `ID` int(11) NOT NULL COMMENT '主键',
  2205. `reformnoticeid` int(11) NULL DEFAULT NULL COMMENT '整改通知单(外键,指向treformnotice.ID)',
  2206. `filename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  2207. `filerealname` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '文件名称',
  2208. `isdel` tinyint(4) NULL DEFAULT NULL COMMENT '删除标识',
  2209. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  2210. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期'
  2211. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '整改通知单附件表' ROW_FORMAT = Dynamic;
  2212. -- ----------------------------
  2213. -- Table structure for treformnotice_employee
  2214. -- ----------------------------
  2215. DROP TABLE IF EXISTS `treformnotice_employee`;
  2216. CREATE TABLE `treformnotice_employee` (
  2217. `ID` int(11) NOT NULL COMMENT '主键',
  2218. `reformnoticeid` int(11) NULL DEFAULT NULL COMMENT '整改通知单主表(外键指向treformnotice.id)',
  2219. `employeeid` int(11) NULL DEFAULT NULL COMMENT '整改组员id(外键,指向temployee.id)',
  2220. `isdel` tinyint(4) NULL DEFAULT NULL COMMENT '删除标识(0:未删除 1:已删除)'
  2221. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '整改通知单整改组员表' ROW_FORMAT = Dynamic;
  2222. -- ----------------------------
  2223. -- Table structure for treformnotice_record
  2224. -- ----------------------------
  2225. DROP TABLE IF EXISTS `treformnotice_record`;
  2226. CREATE TABLE `treformnotice_record` (
  2227. `ID` int(11) NOT NULL COMMENT '主键',
  2228. `reformnoticeid` int(11) NULL DEFAULT NULL COMMENT '整改通制单主表id(外键指向treformnotice.id)',
  2229. `recordemployeeid` int(11) NULL DEFAULT NULL COMMENT '记录人id(外键指向temployee.id)',
  2230. `recorddate` datetime NULL DEFAULT NULL COMMENT '记录时间',
  2231. `recordcontent` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '内容',
  2232. `isdel` tinyint(4) NULL DEFAULT NULL COMMENT '删除标识(0:未删除 1:已删除)',
  2233. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  2234. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传附件名称',
  2235. `uploaddateList` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传时间',
  2236. `reportMan` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人'
  2237. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '整改通知单整改记录表' ROW_FORMAT = Dynamic;
  2238. -- ----------------------------
  2239. -- Table structure for treformnotice_recordattach
  2240. -- ----------------------------
  2241. DROP TABLE IF EXISTS `treformnotice_recordattach`;
  2242. CREATE TABLE `treformnotice_recordattach` (
  2243. `ID` int(11) NOT NULL COMMENT '主键',
  2244. `reformnotice_recordid` int(11) NULL DEFAULT NULL COMMENT '整改通知单整改记录id(外键,指向treformnotice_record.ID)',
  2245. `filename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  2246. `filerealname` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  2247. `isdel` tinyint(4) NULL DEFAULT NULL COMMENT '删除标识',
  2248. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  2249. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期'
  2250. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '整改通知单记录附件表' ROW_FORMAT = Dynamic;
  2251. -- ----------------------------
  2252. -- Table structure for trepairedreceive
  2253. -- ----------------------------
  2254. DROP TABLE IF EXISTS `trepairedreceive`;
  2255. CREATE TABLE `trepairedreceive` (
  2256. `ID` int(11) NOT NULL,
  2257. `repairsendid` int(11) NULL DEFAULT NULL COMMENT '需维修产品发货单ID(外键,指向trepairsend.ID)',
  2258. `repairsendcode` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '需维修产品发货单号',
  2259. `receivedate` datetime NULL DEFAULT NULL COMMENT '发货时间',
  2260. `receiveaddress` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货地点',
  2261. `totalsendnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '总维修发货数量',
  2262. `isreceive` int(11) NULL DEFAULT NULL COMMENT '是否接货 (0:未接货,1:已接货)',
  2263. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间',
  2264. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2265. `createtime` datetime NULL DEFAULT NULL,
  2266. `isdel` int(11) NULL DEFAULT NULL,
  2267. `receiveemployeeid` int(11) NULL DEFAULT NULL COMMENT '发货登记人员(外键,指向temployee.ID)',
  2268. `totalreceivenum` decimal(12, 2) NULL DEFAULT NULL COMMENT '总实际到货数量',
  2269. `deliveryno` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '接货单号',
  2270. `deliverydate` datetime NULL DEFAULT NULL COMMENT '接货日期',
  2271. `deliverysite` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '接货地点',
  2272. PRIMARY KEY (`ID`, `deliveryno`) USING BTREE
  2273. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '已维修产品接货单' ROW_FORMAT = Dynamic;
  2274. -- ----------------------------
  2275. -- Table structure for trepairedreceive_detail
  2276. -- ----------------------------
  2277. DROP TABLE IF EXISTS `trepairedreceive_detail`;
  2278. CREATE TABLE `trepairedreceive_detail` (
  2279. `ID` int(11) NOT NULL,
  2280. `repairedreceiveid` int(11) NULL DEFAULT NULL COMMENT '已维修产品接货单ID(外键,指向trepairreceive.ID)',
  2281. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  2282. `createtime` datetime NULL DEFAULT NULL,
  2283. `isdel` int(11) NULL DEFAULT NULL,
  2284. `productid` int(11) NULL DEFAULT NULL,
  2285. `sendnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '维修发货数量',
  2286. `planbackdate` datetime NULL DEFAULT NULL COMMENT '计划返回时间',
  2287. `remark` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注',
  2288. `receivenum` decimal(12, 2) NULL DEFAULT NULL COMMENT '实际到货数量',
  2289. PRIMARY KEY (`ID`) USING BTREE
  2290. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '已维修产品接货-产品明细' ROW_FORMAT = Dynamic;
  2291. -- ----------------------------
  2292. -- Table structure for trepairedsend
  2293. -- ----------------------------
  2294. DROP TABLE IF EXISTS `trepairedsend`;
  2295. CREATE TABLE `trepairedsend` (
  2296. `ID` int(11) NOT NULL,
  2297. `repairsendid` int(11) NULL DEFAULT NULL COMMENT '需维修产品发货单ID(外键,指向trepairsend.ID)',
  2298. `repairsendcode` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '需维修产品发货单号',
  2299. `senddate` datetime NULL DEFAULT NULL COMMENT '发货时间',
  2300. `sendaddress` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发送地点',
  2301. `totalsendnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '总维修发货数量',
  2302. `isreceive` int(11) NULL DEFAULT NULL COMMENT '是否接货 (0:未接货,1:已接货)',
  2303. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2304. `createtime` datetime NULL DEFAULT NULL,
  2305. `isdel` int(11) NULL DEFAULT NULL,
  2306. `sendemployeeid` int(11) NULL DEFAULT NULL COMMENT '发货登记人员(外键,指向temployee.ID)',
  2307. `receiveid` int(11) NULL DEFAULT NULL COMMENT '需维修接货单(外键指向trepairreceive)',
  2308. PRIMARY KEY (`ID`) USING BTREE
  2309. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '已维修产品发货单' ROW_FORMAT = Dynamic;
  2310. -- ----------------------------
  2311. -- Table structure for trepairedsend_detail
  2312. -- ----------------------------
  2313. DROP TABLE IF EXISTS `trepairedsend_detail`;
  2314. CREATE TABLE `trepairedsend_detail` (
  2315. `ID` int(11) NOT NULL,
  2316. `repairedsendid` int(11) NULL DEFAULT NULL COMMENT '已维修产品发货单ID(外键,指向trepairedsend.ID)',
  2317. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  2318. `createtime` datetime NULL DEFAULT NULL,
  2319. `isdel` int(11) NULL DEFAULT NULL,
  2320. `productid` int(11) NULL DEFAULT NULL COMMENT '产品ID',
  2321. `sendnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '维修发货数量',
  2322. `remark` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注',
  2323. PRIMARY KEY (`ID`) USING BTREE
  2324. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '已维修产品发货明细表' ROW_FORMAT = Dynamic;
  2325. -- ----------------------------
  2326. -- Table structure for trepairprocess
  2327. -- ----------------------------
  2328. DROP TABLE IF EXISTS `trepairprocess`;
  2329. CREATE TABLE `trepairprocess` (
  2330. `ID` int(11) NOT NULL,
  2331. `repairsendid` int(11) NULL DEFAULT NULL COMMENT '需维修产品发货单ID(外键,指向trepairsend.ID)',
  2332. `repairsendcode` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '需维修产品发货单号',
  2333. `totalnotsendnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '发货时间',
  2334. `reportdate` datetime NULL DEFAULT NULL COMMENT '发货时间',
  2335. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2336. `createtime` datetime NULL DEFAULT NULL,
  2337. `isdel` int(11) NULL DEFAULT NULL,
  2338. `repairstateid` int(11) NULL DEFAULT NULL COMMENT '维修状态分类ID(外键,指向trepairstate.ID)(isdel)',
  2339. `repairno` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '维修单号',
  2340. `deliverysite` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货地址',
  2341. PRIMARY KEY (`ID`) USING BTREE
  2342. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '维修进程管理' ROW_FORMAT = Dynamic;
  2343. -- ----------------------------
  2344. -- Table structure for trepairprocess_detail
  2345. -- ----------------------------
  2346. DROP TABLE IF EXISTS `trepairprocess_detail`;
  2347. CREATE TABLE `trepairprocess_detail` (
  2348. `ID` int(11) NOT NULL,
  2349. `repairprocessid` int(11) NULL DEFAULT NULL COMMENT '维修进程单ID(外键,指向trepairprocess.ID)',
  2350. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  2351. `createtime` datetime NULL DEFAULT NULL,
  2352. `isdel` int(11) NULL DEFAULT NULL,
  2353. `productid` int(11) NULL DEFAULT NULL COMMENT '产品ID',
  2354. `notsendnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '未发货数量',
  2355. `planbackdate` datetime NULL DEFAULT NULL COMMENT '原定计划时间',
  2356. `remark` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注',
  2357. `alterplandate` datetime NULL DEFAULT NULL COMMENT '修改计划时间',
  2358. `repair` int(11) NULL DEFAULT NULL COMMENT '维修状态',
  2359. PRIMARY KEY (`ID`) USING BTREE
  2360. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '维修进程管理明细' ROW_FORMAT = Dynamic;
  2361. -- ----------------------------
  2362. -- Table structure for trepairreceive
  2363. -- ----------------------------
  2364. DROP TABLE IF EXISTS `trepairreceive`;
  2365. CREATE TABLE `trepairreceive` (
  2366. `ID` int(11) NOT NULL,
  2367. `deliveryid` int(11) NULL DEFAULT NULL COMMENT '需维修产品发货单ID(外键,指向trepairsend.ID)',
  2368. `repairsendcode` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '需维修产品发货单号',
  2369. `receivedate` datetime NULL DEFAULT NULL COMMENT '接货时间',
  2370. `receiveaddress` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '接货地址',
  2371. `totalsendnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '总返厂发货数量',
  2372. `isreceive` int(11) NULL DEFAULT NULL COMMENT '是否接货 (0:未接货,1:已接货)(isdel)',
  2373. `reportdate` datetime NULL DEFAULT NULL COMMENT '接货时间',
  2374. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2375. `createtime` datetime NULL DEFAULT NULL,
  2376. `isdel` int(11) NULL DEFAULT NULL,
  2377. `totalreceivenum` decimal(12, 2) NULL DEFAULT NULL COMMENT '总实际收货数量',
  2378. `receiveemployeeid` int(11) NULL DEFAULT NULL COMMENT '接货登记人员(外键,指向temployee.ID)',
  2379. `deliveryno` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货单号',
  2380. `deliverydate` datetime NULL DEFAULT NULL COMMENT '发货时间',
  2381. `deliverysite` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货地址',
  2382. `isbacksend` int(11) NULL DEFAULT NULL COMMENT '是否已发货',
  2383. PRIMARY KEY (`ID`) USING BTREE
  2384. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '需维修产品接货记录' ROW_FORMAT = Dynamic;
  2385. -- ----------------------------
  2386. -- Table structure for trepairreceive_detail
  2387. -- ----------------------------
  2388. DROP TABLE IF EXISTS `trepairreceive_detail`;
  2389. CREATE TABLE `trepairreceive_detail` (
  2390. `ID` int(11) NOT NULL,
  2391. `repairreceiveid` int(11) NULL DEFAULT NULL COMMENT '需维修产品接货单ID',
  2392. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称',
  2393. `createtime` datetime NULL DEFAULT NULL,
  2394. `isdel` int(11) NULL DEFAULT NULL,
  2395. `productid` int(11) NULL DEFAULT NULL COMMENT '产品ID',
  2396. `sendnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '返厂发货数量',
  2397. `planbackdate` datetime NULL DEFAULT NULL COMMENT '计划返回时间',
  2398. `remark` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注',
  2399. `receivenum` double NULL DEFAULT NULL COMMENT '实际收货数量',
  2400. PRIMARY KEY (`ID`) USING BTREE
  2401. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '需维修产品接货记录明细表' ROW_FORMAT = Dynamic;
  2402. -- ----------------------------
  2403. -- Table structure for trepairsend
  2404. -- ----------------------------
  2405. DROP TABLE IF EXISTS `trepairsend`;
  2406. CREATE TABLE `trepairsend` (
  2407. `ID` int(11) NOT NULL,
  2408. `sendcode` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货单单号',
  2409. `senddate` datetime NULL DEFAULT NULL COMMENT '发货时间',
  2410. `sendemployeeid` int(11) NULL DEFAULT NULL COMMENT '发货登记人员(外键,指向temployee.ID)',
  2411. `sendaddress` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发送地点',
  2412. `totalsendnum` float NULL DEFAULT NULL COMMENT '总返厂发货数量',
  2413. `isreceive` int(11) NULL DEFAULT NULL COMMENT '是否接货 (0:未接货,1:已接货)',
  2414. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2415. `createtime` datetime NULL DEFAULT NULL,
  2416. `isdel` int(11) NULL DEFAULT NULL,
  2417. PRIMARY KEY (`ID`) USING BTREE
  2418. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '需维修产品发货记录' ROW_FORMAT = Dynamic;
  2419. -- ----------------------------
  2420. -- Table structure for trepairsend_detail
  2421. -- ----------------------------
  2422. DROP TABLE IF EXISTS `trepairsend_detail`;
  2423. CREATE TABLE `trepairsend_detail` (
  2424. `ID` int(11) NOT NULL,
  2425. `repairsendid` int(11) NULL DEFAULT NULL COMMENT '需维修产品发货单ID(外键,指向trepairsend.ID)',
  2426. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  2427. `createtime` datetime NULL DEFAULT NULL,
  2428. `isdel` int(11) NULL DEFAULT NULL,
  2429. `productid` int(11) NULL DEFAULT NULL COMMENT '产品ID',
  2430. `sendnum` float NULL DEFAULT NULL COMMENT '返厂发货数量',
  2431. `planbackdate` datetime NULL DEFAULT NULL COMMENT '计划返回时间',
  2432. `remark` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注',
  2433. PRIMARY KEY (`ID`) USING BTREE
  2434. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '需维修产品发货记录明细表' ROW_FORMAT = Dynamic;
  2435. -- ----------------------------
  2436. -- Table structure for trepairstate
  2437. -- ----------------------------
  2438. DROP TABLE IF EXISTS `trepairstate`;
  2439. CREATE TABLE `trepairstate` (
  2440. `ID` int(11) NOT NULL,
  2441. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态名称',
  2442. `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  2443. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2444. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2445. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  2446. PRIMARY KEY (`ID`) USING BTREE
  2447. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  2448. -- ----------------------------
  2449. -- Table structure for trules
  2450. -- ----------------------------
  2451. DROP TABLE IF EXISTS `trules`;
  2452. CREATE TABLE `trules` (
  2453. `ID` int(11) NOT NULL,
  2454. `type` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型',
  2455. `title` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标题',
  2456. `content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '通知内容(解析前)',
  2457. `date` datetime NULL DEFAULT NULL COMMENT '时间',
  2458. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识 (0:未删除,1:已删除)',
  2459. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2460. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  2461. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间(isdel)',
  2462. `new` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '通知内容(解析后)',
  2463. PRIMARY KEY (`ID`) USING BTREE
  2464. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '管理规定' ROW_FORMAT = Dynamic;
  2465. -- ----------------------------
  2466. -- Table structure for trules_attach
  2467. -- ----------------------------
  2468. DROP TABLE IF EXISTS `trules_attach`;
  2469. CREATE TABLE `trules_attach` (
  2470. `ID` int(11) NOT NULL COMMENT '主键',
  2471. `rulesid` int(11) NULL DEFAULT NULL COMMENT '管理规定ID(外键,指向trules.ID)',
  2472. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  2473. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  2474. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2475. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  2476. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  2477. PRIMARY KEY (`ID`) USING BTREE
  2478. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  2479. -- ----------------------------
  2480. -- Table structure for trunstate
  2481. -- ----------------------------
  2482. DROP TABLE IF EXISTS `trunstate`;
  2483. CREATE TABLE `trunstate` (
  2484. `ID` int(11) NOT NULL,
  2485. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态名称',
  2486. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2487. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  2488. PRIMARY KEY (`ID`) USING BTREE
  2489. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目运行状态分类' ROW_FORMAT = Dynamic;
  2490. -- ----------------------------
  2491. -- Table structure for tsatisfaction
  2492. -- ----------------------------
  2493. DROP TABLE IF EXISTS `tsatisfaction`;
  2494. CREATE TABLE `tsatisfaction` (
  2495. `ID` int(11) NOT NULL,
  2496. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称(外键,指向tproject.ID)',
  2497. `custtypeid` int(11) NULL DEFAULT NULL COMMENT '调查对象分类(外键,指向tcusttype.ID)',
  2498. `coal` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '使用煤矿',
  2499. `custfullnameid` int(11) NULL DEFAULT NULL COMMENT '客户全称',
  2500. `custname` int(11) NULL DEFAULT NULL COMMENT '客户姓名,外键指向tcustlinkman.id',
  2501. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间',
  2502. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  2503. `createtime` datetime NULL DEFAULT NULL,
  2504. `isdel` int(11) NULL DEFAULT NULL,
  2505. `performance` decimal(12, 2) NULL DEFAULT NULL COMMENT '产品性能',
  2506. `appearance` decimal(12, 2) NULL DEFAULT NULL COMMENT '产品外观',
  2507. `quality` decimal(12, 2) NULL DEFAULT NULL COMMENT '包装质量',
  2508. `totalproduct` decimal(12, 2) NULL DEFAULT NULL COMMENT '产品质量分值合计(35%)',
  2509. `service` decimal(12, 2) NULL DEFAULT NULL COMMENT '服务质量(35%)',
  2510. `totalservice` decimal(12, 2) NULL DEFAULT NULL COMMENT '服务质量分值合计',
  2511. `price` decimal(12, 2) NULL DEFAULT NULL COMMENT '价格(15%)',
  2512. `totalprice` decimal(12, 2) NULL DEFAULT NULL COMMENT '价格分值合计',
  2513. `delivery` decimal(12, 2) NULL DEFAULT NULL COMMENT '交货期(15%)',
  2514. `totaldelivery` decimal(12, 2) NULL DEFAULT NULL COMMENT '交货期分值合计',
  2515. `advice` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户意见建议',
  2516. `totalscore` decimal(12, 2) NULL DEFAULT NULL COMMENT '加权平均值合计',
  2517. `doctypeid` int(11) NULL DEFAULT NULL COMMENT '提交报告类型 ,指向 twarndays.ID',
  2518. `cc` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '邮件抄送人',
  2519. `isnew` smallint(6) NULL DEFAULT NULL COMMENT '是否已查看(0:未查看,1:已查看)',
  2520. `isfile` smallint(6) NULL DEFAULT NULL COMMENT '表单状态(0:未提交,1:已提交,2:已归档,3:已驳回)',
  2521. `custpost` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户职位',
  2522. `custphone` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户电话',
  2523. PRIMARY KEY (`ID`) USING BTREE
  2524. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户满意度调查表' ROW_FORMAT = Dynamic;
  2525. -- ----------------------------
  2526. -- Table structure for tsatisfaction_attachment
  2527. -- ----------------------------
  2528. DROP TABLE IF EXISTS `tsatisfaction_attachment`;
  2529. CREATE TABLE `tsatisfaction_attachment` (
  2530. `ID` int(11) NOT NULL,
  2531. `satisfactionid` int(11) NULL DEFAULT NULL COMMENT '专题报告外键',
  2532. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  2533. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  2534. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2535. `isdisable` int(11) NULL DEFAULT NULL COMMENT '停用标识(isdel)',
  2536. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  2537. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  2538. PRIMARY KEY (`ID`) USING BTREE
  2539. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户满意度调查附件表' ROW_FORMAT = Dynamic;
  2540. -- ----------------------------
  2541. -- Table structure for tsend
  2542. -- ----------------------------
  2543. DROP TABLE IF EXISTS `tsend`;
  2544. CREATE TABLE `tsend` (
  2545. `ID` int(11) NOT NULL,
  2546. `date` datetime NULL DEFAULT NULL COMMENT '发货日期',
  2547. `sendaddress` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货地址',
  2548. `receiveaddress` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '接货地址',
  2549. `receiveman` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货人姓名',
  2550. `receivephone` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货人电话',
  2551. `notifierid` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '通知人(外键,多选,指向temployee.ID)',
  2552. `notifiername` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '通知人姓名',
  2553. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键,指向tsalecenter.ID)',
  2554. `money` decimal(12, 2) NULL DEFAULT NULL COMMENT '发生费用',
  2555. `isreceive` int(11) NULL DEFAULT NULL COMMENT '是否接货 (0:未接货,1:已接货)',
  2556. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2557. `createtime` datetime NULL DEFAULT NULL,
  2558. `isdel` int(11) NULL DEFAULT NULL,
  2559. `totalnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '总数量',
  2560. `totalmoney` decimal(12, 2) NULL DEFAULT NULL COMMENT '总钱数',
  2561. PRIMARY KEY (`ID`) USING BTREE
  2562. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '发货记录' ROW_FORMAT = Dynamic;
  2563. -- ----------------------------
  2564. -- Table structure for tsend_attribute
  2565. -- ----------------------------
  2566. DROP TABLE IF EXISTS `tsend_attribute`;
  2567. CREATE TABLE `tsend_attribute` (
  2568. `ID` int(11) NOT NULL,
  2569. `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型名称',
  2570. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2571. `createtime` datetime NULL DEFAULT NULL,
  2572. PRIMARY KEY (`ID`) USING BTREE
  2573. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '发货记录-关联属性表' ROW_FORMAT = Dynamic;
  2574. -- ----------------------------
  2575. -- Table structure for tsend_detail
  2576. -- ----------------------------
  2577. DROP TABLE IF EXISTS `tsend_detail`;
  2578. CREATE TABLE `tsend_detail` (
  2579. `ID` int(11) NOT NULL,
  2580. `sendid` int(11) NULL DEFAULT NULL COMMENT '发货记录ID(外键,指向tsend.ID)',
  2581. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  2582. `listono` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '装箱清单单号',
  2583. `serialno` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '序号',
  2584. `productno` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品号',
  2585. `productname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品名',
  2586. `model` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格',
  2587. `sendnum` decimal(12, 2) NULL DEFAULT NULL COMMENT '数量',
  2588. `unit` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
  2589. `boxno` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '箱号',
  2590. `remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  2591. `attribute` int(11) NULL DEFAULT NULL COMMENT '关联属性',
  2592. `createtime` datetime NULL DEFAULT NULL,
  2593. `isdel` int(11) NULL DEFAULT NULL,
  2594. `money` decimal(12, 2) NULL DEFAULT NULL COMMENT '费用总额',
  2595. `isprojectid` int(11) NULL DEFAULT NULL COMMENT '涉及项目(0:否,1:是)',
  2596. PRIMARY KEY (`ID`) USING BTREE
  2597. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '发货记录-明细表' ROW_FORMAT = Dynamic;
  2598. -- ----------------------------
  2599. -- Table structure for tservelog
  2600. -- ----------------------------
  2601. DROP TABLE IF EXISTS `tservelog`;
  2602. CREATE TABLE `tservelog` (
  2603. `ID` int(11) NOT NULL COMMENT '主键',
  2604. `jobtype` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '服务分类 1:井上,2:井下',
  2605. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  2606. `date` datetime NULL DEFAULT NULL COMMENT '服务日期',
  2607. `coal` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '服务煤矿',
  2608. `servicerid` int(11) NULL DEFAULT NULL COMMENT '服务人员(外键,指向temployee)',
  2609. `upemstardate` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '井上服务时间',
  2610. `downstaredate` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '井下服务时间',
  2611. `techemployee` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '技术支持人员(外键,指向temployee)',
  2612. `isdel` int(11) NULL DEFAULT NULL,
  2613. `iscommit` int(11) NULL DEFAULT NULL COMMENT '提交审核标识(0:未提交,1:已提交)',
  2614. `employee` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2615. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间',
  2616. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2617. `createtime` datetime NULL DEFAULT NULL,
  2618. `content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '工作内容',
  2619. `question` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '问题描述',
  2620. `measure` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '处理措施',
  2621. `result` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '处理结果',
  2622. `totalnum` double NULL DEFAULT NULL,
  2623. `techemployeename` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '技术支持人员',
  2624. `upemendate` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  2625. `downendate` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  2626. `number` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  2627. `downtimelen` decimal(12, 3) NULL DEFAULT NULL COMMENT '下井总时长',
  2628. `emppositionid` int(11) NULL DEFAULT NULL COMMENT '下井记录id,外键指向tempposition.id',
  2629. `subdowntimelen` decimal(12, 3) NULL DEFAULT NULL COMMENT '下井服务时长',
  2630. `coalname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '矿方联系人',
  2631. `coaltel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '矿方联系电话',
  2632. PRIMARY KEY (`ID`) USING BTREE
  2633. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  2634. -- ----------------------------
  2635. -- Table structure for tservelog_20180508
  2636. -- ----------------------------
  2637. DROP TABLE IF EXISTS `tservelog_20180508`;
  2638. CREATE TABLE `tservelog_20180508` (
  2639. `ID` int(11) NOT NULL COMMENT '主键',
  2640. `jobtype` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '服务分类 1:井上,2:井下',
  2641. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目名称(外键,指向tproject.ID)',
  2642. `date` datetime NULL DEFAULT NULL COMMENT '服务日期',
  2643. `coal` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '服务煤矿',
  2644. `servicerid` int(11) NULL DEFAULT NULL COMMENT '服务人员(外键,指向temployee)',
  2645. `upemstardate` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '井上服务时间',
  2646. `downstaredate` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '井下服务时间',
  2647. `techemployee` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '技术支持人员(外键,指向temployee)',
  2648. `isdel` int(11) NULL DEFAULT NULL,
  2649. `iscommit` int(11) NULL DEFAULT NULL COMMENT '提交审核标识(0:未提交,1:已提交)',
  2650. `employee` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2651. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间',
  2652. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2653. `createtime` datetime NULL DEFAULT NULL,
  2654. `content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '工作内容',
  2655. `question` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '问题描述',
  2656. `measure` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '处理措施',
  2657. `result` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '处理结果',
  2658. `totalnum` double NULL DEFAULT NULL,
  2659. `techemployeename` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '技术支持人员',
  2660. `upemendate` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  2661. `downendate` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  2662. `number` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  2663. `downtimelen` decimal(12, 3) NULL DEFAULT NULL COMMENT '下井总时长',
  2664. `emppositionid` int(11) NULL DEFAULT NULL COMMENT '下井记录id,外键指向tempposition.id',
  2665. `subdowntimelen` decimal(12, 3) NULL DEFAULT NULL COMMENT '下井服务时长',
  2666. `coalname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '矿方联系人',
  2667. `coaltel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '矿方联系电话',
  2668. PRIMARY KEY (`ID`) USING BTREE
  2669. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  2670. -- ----------------------------
  2671. -- Table structure for tservelog_attachment
  2672. -- ----------------------------
  2673. DROP TABLE IF EXISTS `tservelog_attachment`;
  2674. CREATE TABLE `tservelog_attachment` (
  2675. `ID` int(11) NOT NULL COMMENT '主键',
  2676. `servelogid` int(11) NULL DEFAULT NULL COMMENT '服务日志附件表(外键,指向tservelog.ID)',
  2677. `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  2678. `filerealname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  2679. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2680. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  2681. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  2682. PRIMARY KEY (`ID`) USING BTREE
  2683. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  2684. -- ----------------------------
  2685. -- Table structure for tservelog_damage
  2686. -- ----------------------------
  2687. DROP TABLE IF EXISTS `tservelog_damage`;
  2688. CREATE TABLE `tservelog_damage` (
  2689. `ID` int(11) NOT NULL,
  2690. `servelogid` int(11) NULL DEFAULT NULL COMMENT '服务日志明细表(外键,指向tservelog.ID)',
  2691. `partid` int(11) NULL DEFAULT NULL COMMENT '损坏元件ID(外键,指向tproduct)',
  2692. `partname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '损坏元件名称',
  2693. `partnum` int(11) NULL DEFAULT NULL COMMENT '损坏元件个数',
  2694. `createtime` datetime NULL DEFAULT NULL,
  2695. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2696. `projecid` int(11) NULL DEFAULT NULL COMMENT '项目简称',
  2697. `partcause` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '损坏原因',
  2698. `projectabbreviationname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目名称',
  2699. `softtext` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '软件特殊情况记录',
  2700. PRIMARY KEY (`ID`) USING BTREE
  2701. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '元件损坏明细表' ROW_FORMAT = Dynamic;
  2702. -- ----------------------------
  2703. -- Table structure for tservelog_detail
  2704. -- ----------------------------
  2705. DROP TABLE IF EXISTS `tservelog_detail`;
  2706. CREATE TABLE `tservelog_detail` (
  2707. `ID` int(11) NOT NULL,
  2708. `servelogid` int(11) NULL DEFAULT NULL COMMENT '服务日志明细表(外键,指向tservelog.ID)',
  2709. `content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '工作内容',
  2710. `question` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '问题描述',
  2711. `measure` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '处理措施',
  2712. `result` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '处理结果',
  2713. `createtime` datetime NULL DEFAULT NULL,
  2714. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2715. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称',
  2716. `mession` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  2717. `otherid` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  2718. `subdowntimelen` decimal(12, 3) NULL DEFAULT NULL COMMENT '下井时长',
  2719. PRIMARY KEY (`ID`) USING BTREE
  2720. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  2721. -- ----------------------------
  2722. -- Table structure for tservelog_techemp
  2723. -- ----------------------------
  2724. DROP TABLE IF EXISTS `tservelog_techemp`;
  2725. CREATE TABLE `tservelog_techemp` (
  2726. `ID` int(11) NOT NULL,
  2727. `servelogid` int(11) NULL DEFAULT NULL COMMENT '服务日志明细表(外键,指向tservelog.ID)',
  2728. `employeeid` int(11) NULL DEFAULT NULL COMMENT '井上服务人员(外键,指向temployee.ID)',
  2729. `createtime` datetime NULL DEFAULT NULL,
  2730. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2731. PRIMARY KEY (`ID`) USING BTREE
  2732. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  2733. -- ----------------------------
  2734. -- Table structure for tspecialreport
  2735. -- ----------------------------
  2736. DROP TABLE IF EXISTS `tspecialreport`;
  2737. CREATE TABLE `tspecialreport` (
  2738. `ID` int(11) NOT NULL,
  2739. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称(外键,指向tproject.ID)',
  2740. `title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '报告主题',
  2741. `importanttype` int(11) NULL DEFAULT NULL COMMENT '重要程度 (1一般,2严重,3特别严重)',
  2742. `content` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '报告内容',
  2743. `createmanid` int(11) NULL DEFAULT NULL COMMENT '创建人(外键,指向temployee.ID)',
  2744. `createtime` datetime NULL DEFAULT NULL,
  2745. `isdel` int(11) NULL DEFAULT NULL,
  2746. `isresolve` int(11) NULL DEFAULT NULL COMMENT '是否解决 (0:否,1:是)',
  2747. `cc` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '邮件抄送人',
  2748. `isnew` smallint(6) NULL DEFAULT NULL COMMENT '是否已查看(0:未查看,1:已查看)',
  2749. `isfile` smallint(6) NULL DEFAULT NULL COMMENT '表单状态(0:未提交,1:已提交,2:已归档,3:已驳回)',
  2750. `reportmember` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '专题组组员',
  2751. `reportmembername` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '专题组组员名字',
  2752. `resolveman` int(11) NULL DEFAULT NULL COMMENT '解决操作人(外键指向temployee.id)',
  2753. `resolvetime` datetime NULL DEFAULT NULL COMMENT '解决时间',
  2754. PRIMARY KEY (`ID`) USING BTREE
  2755. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目专题报告' ROW_FORMAT = Dynamic;
  2756. -- ----------------------------
  2757. -- Table structure for tspecialreport_attachment
  2758. -- ----------------------------
  2759. DROP TABLE IF EXISTS `tspecialreport_attachment`;
  2760. CREATE TABLE `tspecialreport_attachment` (
  2761. `ID` int(11) NOT NULL,
  2762. `specialid` int(11) NOT NULL COMMENT '专题报告外键',
  2763. `filename` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  2764. `filerealname` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
  2765. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识',
  2766. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  2767. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  2768. PRIMARY KEY (`ID`) USING BTREE
  2769. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目专题报告附件' ROW_FORMAT = Dynamic;
  2770. -- ----------------------------
  2771. -- Table structure for tspecialreport_detail
  2772. -- ----------------------------
  2773. DROP TABLE IF EXISTS `tspecialreport_detail`;
  2774. CREATE TABLE `tspecialreport_detail` (
  2775. `ID` int(11) NOT NULL COMMENT '主键',
  2776. `specialreportid` int(11) NULL DEFAULT NULL COMMENT '项目专题报告ID(外键,指向tspecialreport.ID)',
  2777. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识(0:未删除,1:已删除)',
  2778. `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  2779. `tsupplylist_detailnewid` int(11) NULL DEFAULT NULL COMMENT '物料清单明细表id,外键指向tsupplylist_detailnew.id',
  2780. PRIMARY KEY (`ID`) USING BTREE
  2781. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目专题报告涉及产品明细' ROW_FORMAT = Dynamic;
  2782. -- ----------------------------
  2783. -- Table structure for tspecialreport_employee
  2784. -- ----------------------------
  2785. DROP TABLE IF EXISTS `tspecialreport_employee`;
  2786. CREATE TABLE `tspecialreport_employee` (
  2787. `ID` int(11) NOT NULL,
  2788. `specialreportid` int(11) NULL DEFAULT NULL,
  2789. `employeeid` int(11) NULL DEFAULT NULL,
  2790. `isdel` tinyint(4) NULL DEFAULT NULL,
  2791. PRIMARY KEY (`ID`) USING BTREE
  2792. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  2793. -- ----------------------------
  2794. -- Table structure for tspecialreport_message
  2795. -- ----------------------------
  2796. DROP TABLE IF EXISTS `tspecialreport_message`;
  2797. CREATE TABLE `tspecialreport_message` (
  2798. `ID` int(11) NOT NULL,
  2799. `messager` int(11) NULL DEFAULT NULL COMMENT '留言人',
  2800. `messagedate` datetime NULL DEFAULT NULL COMMENT '留言日期',
  2801. `messagecontent` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '留言内容',
  2802. `isdel` int(11) NULL DEFAULT NULL,
  2803. `specialid` int(11) NULL DEFAULT NULL COMMENT '项目专题报告ID(外键,指向tspecialreport.ID)',
  2804. `creater` int(11) NULL DEFAULT NULL,
  2805. PRIMARY KEY (`ID`) USING BTREE
  2806. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目专题报告留言' ROW_FORMAT = Dynamic;
  2807. -- ----------------------------
  2808. -- Table structure for tsumm_car
  2809. -- ----------------------------
  2810. DROP TABLE IF EXISTS `tsumm_car`;
  2811. CREATE TABLE `tsumm_car` (
  2812. `ID` int(11) NOT NULL COMMENT '主键',
  2813. `countdate` datetime NULL DEFAULT NULL COMMENT '统计日期',
  2814. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键指向torganization.id)',
  2815. `amount` int(11) NULL DEFAULT NULL COMMENT '车辆数量'
  2816. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '销售服务中心车辆数量表' ROW_FORMAT = Dynamic;
  2817. -- ----------------------------
  2818. -- Table structure for tsumm_downmine
  2819. -- ----------------------------
  2820. DROP TABLE IF EXISTS `tsumm_downmine`;
  2821. CREATE TABLE `tsumm_downmine` (
  2822. `ID` int(11) NOT NULL COMMENT '主键',
  2823. `countdate` datetime NULL DEFAULT NULL COMMENT '统计日期',
  2824. `servetypeid` tinyint(4) NULL DEFAULT NULL COMMENT '服务类型(1:井下 2:井上)',
  2825. `rate` decimal(6, 4) NULL DEFAULT NULL COMMENT '所占比例'
  2826. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '月度下井服务比例表' ROW_FORMAT = Dynamic;
  2827. -- ----------------------------
  2828. -- Table structure for tsumm_downmine_detail
  2829. -- ----------------------------
  2830. DROP TABLE IF EXISTS `tsumm_downmine_detail`;
  2831. CREATE TABLE `tsumm_downmine_detail` (
  2832. `ID` int(11) NOT NULL COMMENT '主键',
  2833. `countdate` datetime NULL DEFAULT NULL COMMENT '统计日期',
  2834. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键指向torganization.id)',
  2835. `amount` int(11) NULL DEFAULT NULL COMMENT '数量',
  2836. `servetypeid` tinyint(4) NULL DEFAULT NULL COMMENT '服务类型(1:井上 2:井下)'
  2837. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '销售服务中心项目月度下井服务数量表' ROW_FORMAT = Dynamic;
  2838. -- ----------------------------
  2839. -- Table structure for tsumm_employee
  2840. -- ----------------------------
  2841. DROP TABLE IF EXISTS `tsumm_employee`;
  2842. CREATE TABLE `tsumm_employee` (
  2843. `ID` int(11) NOT NULL COMMENT '主键',
  2844. `countdate` datetime NULL DEFAULT NULL COMMENT '统计日期',
  2845. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键指向torganization.id)',
  2846. `amount` int(11) NULL DEFAULT NULL COMMENT '人员数量'
  2847. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '销售服务中心人员数量表' ROW_FORMAT = Dynamic;
  2848. -- ----------------------------
  2849. -- Table structure for tsumm_projecttype
  2850. -- ----------------------------
  2851. DROP TABLE IF EXISTS `tsumm_projecttype`;
  2852. CREATE TABLE `tsumm_projecttype` (
  2853. `ID` int(11) NOT NULL COMMENT '主键',
  2854. `countdate` datetime NULL DEFAULT NULL COMMENT '统计日期',
  2855. `projecttypeid` tinyint(4) NULL DEFAULT NULL COMMENT '项目类型(外键,指向tprojecttype.id)',
  2856. `rate` decimal(6, 4) NULL DEFAULT NULL COMMENT '所占比例'
  2857. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目整体情况比例表' ROW_FORMAT = Dynamic;
  2858. -- ----------------------------
  2859. -- Table structure for tsumm_projecttype_detail
  2860. -- ----------------------------
  2861. DROP TABLE IF EXISTS `tsumm_projecttype_detail`;
  2862. CREATE TABLE `tsumm_projecttype_detail` (
  2863. `ID` int(11) NOT NULL COMMENT '主键',
  2864. `countdate` datetime NULL DEFAULT NULL COMMENT '统计日期',
  2865. `projecttypeid` tinyint(4) NULL DEFAULT NULL COMMENT '项目类型(外键,指向tprojecttype.id)',
  2866. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键,指向torganization.ID)',
  2867. `amount` int(11) NULL DEFAULT NULL COMMENT '数量'
  2868. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '销售服务中心项目情况数量表' ROW_FORMAT = Dynamic;
  2869. -- ----------------------------
  2870. -- Table structure for tsumm_runstate
  2871. -- ----------------------------
  2872. DROP TABLE IF EXISTS `tsumm_runstate`;
  2873. CREATE TABLE `tsumm_runstate` (
  2874. `ID` int(11) NOT NULL COMMENT '主键',
  2875. `countdate` datetime NULL DEFAULT NULL COMMENT '统计日期',
  2876. `runstateid` tinyint(4) NULL DEFAULT NULL COMMENT '运行状态',
  2877. `rate` decimal(6, 4) NULL DEFAULT NULL COMMENT '所占比例'
  2878. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目运行状态比例表' ROW_FORMAT = Dynamic;
  2879. -- ----------------------------
  2880. -- Table structure for tsumm_runstate_detail
  2881. -- ----------------------------
  2882. DROP TABLE IF EXISTS `tsumm_runstate_detail`;
  2883. CREATE TABLE `tsumm_runstate_detail` (
  2884. `ID` int(11) NOT NULL COMMENT '主键',
  2885. `countdate` datetime NULL DEFAULT NULL COMMENT '统计日期',
  2886. `runstateid` tinyint(4) NULL DEFAULT NULL COMMENT '0:质保内1:质保外',
  2887. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键指向torganization.id)',
  2888. `amount` int(11) NULL DEFAULT NULL COMMENT '数量'
  2889. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '销售服务中心项目运行状态数量表' ROW_FORMAT = Dynamic;
  2890. -- ----------------------------
  2891. -- Table structure for tsumm_warranty
  2892. -- ----------------------------
  2893. DROP TABLE IF EXISTS `tsumm_warranty`;
  2894. CREATE TABLE `tsumm_warranty` (
  2895. `ID` int(11) NOT NULL COMMENT '主键',
  2896. `countdate` datetime NULL DEFAULT NULL COMMENT '统计日期',
  2897. `warrantyid` tinyint(4) NULL DEFAULT NULL COMMENT '0:质保内1:质保外',
  2898. `rate` decimal(6, 4) NULL DEFAULT NULL COMMENT '所占比例'
  2899. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目质保状态比例表' ROW_FORMAT = Dynamic;
  2900. -- ----------------------------
  2901. -- Table structure for tsumm_warranty_detail
  2902. -- ----------------------------
  2903. DROP TABLE IF EXISTS `tsumm_warranty_detail`;
  2904. CREATE TABLE `tsumm_warranty_detail` (
  2905. `ID` int(11) NOT NULL COMMENT '主键',
  2906. `countdate` datetime NULL DEFAULT NULL COMMENT '统计日期',
  2907. `warrantyid` tinyint(4) NULL DEFAULT NULL COMMENT '0:质保内1:质保外',
  2908. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键指向torganization.id)',
  2909. `amount` int(11) NULL DEFAULT NULL COMMENT '数量'
  2910. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '销售服务中心项目质保状态数量表' ROW_FORMAT = Dynamic;
  2911. -- ----------------------------
  2912. -- Table structure for tsumm_workload
  2913. -- ----------------------------
  2914. DROP TABLE IF EXISTS `tsumm_workload`;
  2915. CREATE TABLE `tsumm_workload` (
  2916. `ID` int(11) NOT NULL COMMENT '主键',
  2917. `countdate` datetime NULL DEFAULT NULL COMMENT '统计日期',
  2918. `worktypeid` tinyint(4) NULL DEFAULT NULL COMMENT '工作类型(0:市场销售 1:货品收发 2:出厂服务 3:日常工作 4:项目服务)',
  2919. `rate` decimal(6, 4) NULL DEFAULT NULL COMMENT '所占比例'
  2920. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '月度工作量比例表' ROW_FORMAT = Dynamic;
  2921. -- ----------------------------
  2922. -- Table structure for tsumm_workload_detail
  2923. -- ----------------------------
  2924. DROP TABLE IF EXISTS `tsumm_workload_detail`;
  2925. CREATE TABLE `tsumm_workload_detail` (
  2926. `ID` int(11) NOT NULL COMMENT '主键',
  2927. `countdate` datetime NULL DEFAULT NULL COMMENT '统计日期',
  2928. `worktypeid` tinyint(4) NULL DEFAULT NULL COMMENT '工作类型(0:市场销售 1:货品收发 2:出厂服务 3:日常工作 4:项目服务)',
  2929. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键指向torganization.id)',
  2930. `amount` int(11) NULL DEFAULT NULL COMMENT '数量'
  2931. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '销售服务中心项目月度工作量数量表' ROW_FORMAT = Dynamic;
  2932. -- ----------------------------
  2933. -- Table structure for tsupervise
  2934. -- ----------------------------
  2935. DROP TABLE IF EXISTS `tsupervise`;
  2936. CREATE TABLE `tsupervise` (
  2937. `ID` int(11) NOT NULL,
  2938. `projectid` int(11) NULL DEFAULT NULL COMMENT '项目简称(外键,指向tproject.ID)',
  2939. `serviceflow` float NULL DEFAULT NULL COMMENT '售后服务流程规范得分',
  2940. `servicetech` float NULL DEFAULT NULL COMMENT '售后服务技术规范得分',
  2941. `totalrun` float NULL DEFAULT NULL COMMENT '服务标准执行情况',
  2942. `archives` float NULL DEFAULT NULL COMMENT '服务项目档案审核得分',
  2943. `totalarchives` float NULL DEFAULT NULL COMMENT '项目服务档案建设',
  2944. `complaint` float NULL DEFAULT NULL COMMENT '服务投诉得分',
  2945. `totalcomplaint` float NULL DEFAULT NULL COMMENT '服务投诉',
  2946. `replacerate` float NULL DEFAULT NULL COMMENT '服务项目累计更换率统计表得分',
  2947. `damagerate` float NULL DEFAULT NULL COMMENT '服务项目元件损坏情况统计表得分',
  2948. `allotrate` float NULL DEFAULT NULL COMMENT '服务项目物料调拨情况统计表得分',
  2949. `pickrate` float NULL DEFAULT NULL COMMENT '得分服务项目费用领料情况统计表',
  2950. `totalrate` float NULL DEFAULT NULL COMMENT '质保期内备件消耗率统计得分',
  2951. `okrate` float NULL DEFAULT NULL COMMENT '井下设备完好率统计表得分',
  2952. `okcheck` float NULL DEFAULT NULL COMMENT '质保期内设备完好率审核表得分',
  2953. `totalok` float NULL DEFAULT NULL COMMENT '质保期内设备完好率',
  2954. `dailywork` float NULL DEFAULT NULL COMMENT '日常工作反馈情况得分',
  2955. `totalwork` float NULL DEFAULT NULL COMMENT '日常服务工作',
  2956. `date` datetime NULL DEFAULT NULL COMMENT '检查时间',
  2957. `address` varchar(53) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检查地点',
  2958. `employee` float NULL DEFAULT NULL COMMENT '检查人员',
  2959. `totalscore` float NULL DEFAULT NULL COMMENT '检查总分',
  2960. `checkadvice` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '检查意见',
  2961. `rectifyadvice` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '整改结果意见',
  2962. `reportdate` datetime NULL DEFAULT NULL COMMENT '上报时间(isdel)',
  2963. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键,指向temployee.ID)',
  2964. `createtime` datetime NULL DEFAULT NULL,
  2965. `isdel` int(11) NULL DEFAULT NULL,
  2966. `changestate` int(11) NULL DEFAULT NULL COMMENT '整改状态',
  2967. PRIMARY KEY (`ID`) USING BTREE
  2968. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '服务监管' ROW_FORMAT = Dynamic;
  2969. -- ----------------------------
  2970. -- Table structure for tsupervise_attach
  2971. -- ----------------------------
  2972. DROP TABLE IF EXISTS `tsupervise_attach`;
  2973. CREATE TABLE `tsupervise_attach` (
  2974. `ID` int(11) NOT NULL COMMENT '主键',
  2975. `supervise` int(11) NULL DEFAULT NULL COMMENT '服务监管ID(外键,指向tsupervise.ID)',
  2976. `filename` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传路径',
  2977. `filerealname` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件名称',
  2978. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标识(0:未删除,1:已删除)',
  2979. `uploaddate` datetime NULL DEFAULT NULL COMMENT '上传日期',
  2980. `uploader` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上传人',
  2981. PRIMARY KEY (`ID`) USING BTREE
  2982. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目服务监管附件' ROW_FORMAT = Dynamic;
  2983. -- ----------------------------
  2984. -- Table structure for tsupervision
  2985. -- ----------------------------
  2986. DROP TABLE IF EXISTS `tsupervision`;
  2987. CREATE TABLE `tsupervision` (
  2988. `ID` int(11) NOT NULL COMMENT '主键',
  2989. `salecenterid` int(11) NULL DEFAULT NULL COMMENT '销售服务中心(外键指向torganization.id)',
  2990. `examdate` datetime NULL DEFAULT NULL COMMENT '检查日期',
  2991. `examscore` decimal(6, 2) NULL DEFAULT NULL COMMENT '检查总评分',
  2992. `cc` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '邮件抄送人',
  2993. `createmanid` int(11) NULL DEFAULT NULL COMMENT '填报人(外键指向temployee.id)',
  2994. `createtime` datetime NULL DEFAULT NULL COMMENT '填报时间',
  2995. `isdel` tinyint(4) NULL DEFAULT NULL COMMENT '删除标识(0:未删除,1:已删除)'
  2996. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '服务监管考核主表' ROW_FORMAT = Dynamic;
  2997. -- ----------------------------
  2998. -- Table structure for tsupervision_index
  2999. -- ----------------------------
  3000. DROP TABLE IF EXISTS `tsupervision_index`;
  3001. CREATE TABLE `tsupervision_index` (
  3002. `ID` int(11) NOT NULL,
  3003. `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '指标名称',
  3004. `weight` decimal(5, 2) NULL DEFAULT NULL COMMENT '权重',
  3005. `isdel` int(11) NULL DEFAULT NULL COMMENT '删除标志0:未删,1已删',
  3006. PRIMARY KEY (`ID`) USING BTREE
  3007. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  3008. SET FOREIGN_KEY_CHECKS = 1;